laravel-x402 maintained by sandermuller
Description
Laravel adapter for the x402 payment protocol — pay-per-request HTTP APIs with stablecoins.
Author
Last update
2026/06/24 11:33
(dev-dependabot/github_actions/actions/cache-6)
License
Downloads
266
Tags
Last update
2026/06/24 11:33
License
Require
- php ^8.3
- guzzlehttp/guzzle ^7.9
- illuminate/console ^11.0|^12.0
- illuminate/contracts ^11.0|^12.0
- illuminate/database ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- nyholm/psr7 ^1.8
- sandermuller/php-x402 ^0.8.0
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/06/24 11:33
License
Require
- php ^8.3
- guzzlehttp/guzzle ^7.9
- illuminate/console ^11.0|^12.0
- illuminate/contracts ^11.0|^12.0
- illuminate/database ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- nyholm/psr7 ^1.8
- sandermuller/php-x402 ^0.8.0
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/06/10 11:38
License
Require
- php ^8.3
- guzzlehttp/guzzle ^7.9
- illuminate/console ^11.0|^12.0
- illuminate/contracts ^11.0|^12.0
- illuminate/database ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- nyholm/psr7 ^1.8
- sandermuller/php-x402 ^0.8.0
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/06/04 03:32
License
Require
- php ^8.3
- guzzlehttp/guzzle ^7.9
- illuminate/console ^11.0|^12.0
- illuminate/contracts ^11.0|^12.0
- illuminate/database ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- nyholm/psr7 ^1.8
- sandermuller/php-x402 ^0.8.0
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/05/18 08:53
License
Require
- illuminate/contracts ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- illuminate/console ^11.0|^12.0
- guzzlehttp/guzzle ^7.9
- nyholm/psr7 ^1.8
- symfony/psr-http-message-bridge ^7.0|^8.0
- illuminate/database ^11.0|^12.0
- sandermuller/php-x402 ^0.8.0
- php ^8.3
Last update
2026/05/10 21:34
License
Require
- php ^8.2
- guzzlehttp/guzzle ^7.9
- illuminate/console ^11.0|^12.0
- illuminate/contracts ^11.0|^12.0
- illuminate/database ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- nyholm/psr7 ^1.8
- sandermuller/php-x402 ^0.7.0
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/05/10 16:48
License
Require
- php ^8.2
- guzzlehttp/guzzle ^7.9
- illuminate/console ^11.0|^12.0
- illuminate/contracts ^11.0|^12.0
- illuminate/database ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- nyholm/psr7 ^1.8
- sandermuller/php-x402 ^0.5.1
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/05/10 12:04
License
Require
- php ^8.2
- guzzlehttp/guzzle ^7.9
- illuminate/console ^11.0|^12.0
- illuminate/contracts ^11.0|^12.0
- illuminate/database ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- nyholm/psr7 ^1.8
- sandermuller/php-x402 ^0.5.1
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/05/09 22:34
License
Require
- php ^8.2
- sandermuller/php-x402 ^0.3
- illuminate/contracts ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- illuminate/console ^11.0|^12.0
- guzzlehttp/guzzle ^7.9
- nyholm/psr7 ^1.8
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/05/09 13:42
License
Require
- php ^8.2
- sandermuller/php-x402 ^0.2
- illuminate/contracts ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- illuminate/console ^11.0|^12.0
- guzzlehttp/guzzle ^7.9
- nyholm/psr7 ^1.8
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/05/08 17:23
License
Require
- php ^8.2
- sandermuller/php-x402 ^0.2
- illuminate/contracts ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- illuminate/console ^11.0|^12.0
- guzzlehttp/guzzle ^7.9
- nyholm/psr7 ^1.8
- symfony/psr-http-message-bridge ^7.0|^8.0
Last update
2026/05/08 13:48
License
Require
- php ^8.2
- sandermuller/php-x402 ^0.1
- illuminate/contracts ^11.0|^12.0
- illuminate/http ^11.0|^12.0
- illuminate/support ^11.0|^12.0
- illuminate/console ^11.0|^12.0
- guzzlehttp/guzzle ^7.9
- nyholm/psr7 ^1.8
- symfony/psr-http-message-bridge ^7.0|^8.0
laravel-x402
Laravel adapter for the x402 payment protocol. Gate routes behind HTTP 402 stablecoin payments, or pay outbound API calls automatically via the Http facade.
Status: scaffolding. Not yet usable.
Built on top of sandermuller/php-x402 (framework-agnostic core).
Install
composer require sandermuller/laravel-x402
php artisan vendor:publish --tag=x402-config
Server side — gate a route
Route::get('/premium', PremiumController::class)
->middleware('x402:0.01,USDC,base');
Client side — pay outbound calls
$response = Http::withX402()->get('https://api.example.com/data');
Wallet key resolved from config/x402.php (default: X402_PRIVATE_KEY env).
MCP support
For laravel/mcp integration, install sandermuller/laravel-x402-mcp.
License
MIT.