saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon
15,671,597 2,443
Install
composer require saloonphp/saloon
Latest Version:v4.5.0
PHP:^8.2
License:MIT
Last Updated:Oct 11, 2026
Links: GitHub  ·  Packagist
Maintainer: SamCarre

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

Click here to get 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 ✨

Related Packages

saloonphp/laravel-plugin

The official Laravel plugin for Saloon

9,134,298 79
gosuperscript/loqate-php

Loqate API integration with Saloon

174,193 0
austinw/usagym-sdk

USA Gymnastics SDK for PHP

8,545 0
stitch-digital/simpro-php-sdk

An SDK to easily work with the Simpro API

2,190 1

Version History

Version Released PHP License
v4.5.0 ^8.2 MIT
v4.4.0 ^8.2 MIT
v4.3.0 ^8.2 MIT
v4.2.1 ^8.2 MIT
v4.2.0 ^8.2 MIT
Pre-releases (14)
Version Released PHP License
v3.0.0-beta.7 ^8.1 MIT
v3.0.0-beta.6 ^8.1 MIT
v3.0.0-beta.5 ^8.1 MIT
v3.0.0-beta.4 ^8.1 MIT
v3.0.0-beta.3 ^8.1 MIT