saloonphp/saloon
Build beautiful API integrations and SDKs with Saloon
Maintainers
Fund package maintenance!
Requires
- php: ^8.2
- 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: ^10.0 || ^11.0 || ^12.0
- league/flysystem: ^3.0
- pestphp/pest: ^2.36.0 || ^3.8.2 || ^4.1.4
- phpstan/phpstan: ^2.1.13
- saloonphp/xml-wrangler: ^1.1
- spatie/invade: ^2.1
- 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.
Provides
None
Conflicts
Replaces
None
MIT 1307b1d72cacdd2c9c20978cdf7a0b720b4bf3bb
- Sam CarrΓ© <29132017+Sammyjo20.woop@users.noreply.github.com>
This package is auto-updated.
Last update: 2026-05-25 21:50:00 UTC
README
π Logo with brown western bar doors with western scene in background and text that says: Saloon, Your Lone Star of your API integrations
Saloon β Your Lone Star of your API integrations
A PHP package that helps you build beautiful API integrations and SDKs π€
π Build Status
π Downloads
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 β¨
