requestway/laravel-x402
Laravel integration for x402 payment-required APIs. Add middleware, configuration, and helpers to return HTTP 402 challenges, verify payments, and gate routes or resources behind configurable pay-per-request flows.
v0.1.0 as the baseline assessment: this is the first release reviewed, and the release notes are only a changelog link. Pin requestway/laravel-x402 exactly and treat the README, service provider, config file, middleware, and tests as the source of truth.composer require requestway/laravel-x402, then inspect the package service provider for the middleware alias and config key. Publish any package config if available and set the facilitator URL, network, asset, pay-to address, and default price via environment variables./api/premium/ping, with the package middleware and exercise it on a testnet using an x402-aware client. Confirm the flow: unpaid request returns 402 with payment requirements, paid retry includes the payment header, and the controller only runs after successful verification/settlement.config/x402.php or equivalent, middleware registration, route examples, and package tests. Since the release notes are thin, verify exact names against the installed source rather than guessing.402 requirements, sign/pay, retry with the payment header, and assert the paid response.402 with expected requirements; paid request succeeds; malformed/expired/replayed payment is rejected.v0.1.0 is early-stage. Pin the version, read the changelog diff before upgrading, and expect API/config names to be less stable than a mature package.OPTIONS requests and route discovery should not accidentally require payment. Put abuse-prevention rate limits in front of expensive work, but verify how the package expects payment middleware to sit relative to auth and throttling.X-PAYMENT and payment-response headers must be forwarded correctly, and 402 responses generally should not be cached like successful paid responses.How can I help you explore Laravel packages today?