sammyjo20 / saloon
Build beautiful API integrations and SDKs with Saloon
Fund package maintenance!
sammyjo20
Installs: 747 702
Dependents: 34
Suggesters: 0
Security: 0
Stars: 2 080
Watchers: 18
Forks: 107
Open Issues: 26
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.6
- guzzlehttp/promises: ^1.5 || ^2.0
- guzzlehttp/psr7: ^2.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.1 || ^2.0
Requires (Dev)
- ext-simplexml: *
- friendsofphp/php-cs-fixer: ^3.5
- illuminate/collections: ^9.39 || ^10.0
- league/flysystem: ^3.0
- pestphp/pest: ^2.10
- phpstan/phpstan: ^1.11.4
- saloonphp/xml-wrangler: ^1.1
- spatie/ray: ^1.33
- symfony/dom-crawler: ^6.0 || ^7.0
- symfony/var-dumper: ^6.3 || ^7.0
Suggests
- illuminate/collections: Required for the response collect() method.
- saloonphp/xml-wrangler: Required for the response xmlReader() method.
- symfony/dom-crawler: Required for the response dom() method.
- symfony/var-dumper: Required for default debugging drivers.
Conflicts
- v3.x-dev
- v3.10.0
- v3.9.1
- v3.9.0
- v3.8.1
- v3.8.0
- v3.7.0
- v3.6.4
- v3.6.3
- v3.6.2
- v3.6.1
- v3.6.0
- v3.5.0
- v3.4.2
- v3.4.1
- v3.4.0
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.0
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v3.0.0-beta.7
- v3.0.0-beta.6
- v3.0.0-beta.5
- v3.0.0-beta.4
- v3.0.0-beta.3
- v3.0.0-beta.2
- v3.0.0-beta.1
- v2.x-dev
- v2.12.1
- v2.12.0
- v2.11.0
- v2.10.0
- v2.9.2
- v2.9.1
- v2.9.0
- v2.8.1
- v2.8.0
- v2.7.0
- v2.6.6
- v2.6.5
- v2.6.4
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0-beta7
- v2.0.0-beta6
- v2.0.0-beta5
- v2.0.0-beta4
- v2.0.0-beta3
- v2.0.0-beta2
- v2.0.0-beta1
- v1.x-dev
- v1.7.1
- v1.7.0
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.1
- v1.0
- v0.11.0
- v0.10.0
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.6
- v0.6.5
- v0.6.4
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.1
- v0.4.0
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.0
- v0.0.4
- v0.0.3
- v0.0.2
- dev-dependabot/composer/phpstan/phpstan-tw-1.11.4or-tw-2.0.0
This package is auto-updated.
Last update: 2024-11-18 04:21:03 UTC
README
Saloon – Your Lone Star of your API integrations
A PHP package that helps you build beautiful API integrations and SDKs 🤠
Click here to read the documentation
Introduction
Saloon is a PHP library that gives you the tools to build beautifully simple API integrations and SDKs. Saloon moves your API requests into reusable classes so you can keep all your API configurations in one place. Saloon comes with many exciting features out of the box like recording requests in your tests, caching, OAuth2 and pagination. It's a great starting point for building simple, standardised API integrations in your application.
<?php $forge = new ForgeConnector('api-token'); $response = $forge->send(new GetServersRequest); $data = $response->json();
Key Features
- Provides a simple, easy-to-learn, and modern way to build clean, reusable API integrations
- Built on top of Guzzle, the most popular and feature-rich HTTP client
- Works great within a team as it provides a standard everyone can follow
- Great for building your next PHP SDK or library
- Packed full of features like request recording, request concurrency, caching, data-transfer-object support, and full Laravel support.
- Framework agnostic
- Lightweight and has few dependencies.
Getting Started
Contributing
Please see here for more details about contributing.
Security
Please see here for our security policy.
Credits
And a special thanks to Caneco for the logo ✨