negartarh/apiwrapper
ApiWrapper is a Laravel/PHP package that simplifies building clients for external APIs. It offers a structured, reusable layer for sending requests and handling responses and errors, keeping integrations clean and consistent across projects.
composer require negartarh/apiwrapper (v0.9.1 is the first release with Laravel 13 support; pin to ^0.9 until a 1.0 lands).php artisan vendor:publish --provider="Negartarh\\ApiWrapper\\ApiWrapperServiceProvider" and review the generated config before writing code.GET through it to confirm auth and error handling work end to end before expanding.config/ (and .env), not in classes. This is what makes the wrapper reusable across environments and easy to cache with php artisan config:cache.BillingClient, ShippingClient) that consume the package's client. This shields the rest of the app from pre-1.0 API churn.getPackageProviders change passes the Laravel Application instance, so you can conditionally register providers (e.g., only in non-production, or when a feature flag/credential is present).illuminate/* constraints in composer.json match your app before upgrading. If you're still on an older Laravel, check the v0.9.0 constraint set.getPackageProviders signature change. The new Application parameter is useful but can break custom subclasses or overrides that assumed the old signature. Update any overridden methods accordingly.php artisan config:cache — a common cause of "it works locally" bugs.Http::withOptions(['debug' => ...]) or a logging middleware) around the wrapper to inspect real requests/responses; wrappers often obscure the underlying transport errors.How can I help you explore Laravel packages today?