A Laravel/PHP package that helps you build beautiful API integrations and SDKs ðŸ¤
Saloon is a PHP library that provides you with a beautiful API integration framework. It gives you all the tools you need to build and test API integrations for your application or SDKs. It can be easily customised with plugins, but It comes pre-configured for you so you can get to sending API requests right away. Saloon comes with many exciting features out of the box like recording requests in your tests, caching, OAuth2 and pagination.
<?php
$forge = new ForgeConnector('api-token');
$response = $forge->send(new GetServersRequest);
$data = $response->json();
- Provides a simple, easy-to-learn, object-oriented syntax that standardises the way you interact with APIs
- No HTTP client configuration is required but can be completely customised if you need
- Abstract API integrations into classes to keep your code tidy and centralised
- Great for building your next PHP SDKs or package/library
- Works great within a team as it provides a standard everyone can follow
- Application/framework agnostic
- Packed full of features like request recording, request concurrency, caching, data-transfer-object support, and full Laravel support.
- Fully extendable and welcomes your own implementations
- Uses Guzzle, the most popular PHP HTTP client
Please see here for more details about contributing.
Please see here for our security policy.
And a special thanks to Caneco for the logo ✨