# saloonphp/saloon

🤠 Build beautiful API integrations and SDKs with Saloon

Repository: https://github.com/saloonphp/saloon
Canonical: https://ross.abutalabs.com/products/saloon
Homepage: https://docs.saloon.dev
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, api, api-wrapper, php, sdk, guzzle-wrapper, api-integrations, framework-agnostic, saloon
Last push: 2026-03-25T20:55:31+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 76, longevity 100
- inputs: {"age_days": 1790, "days_push": 161, "days_rel": 161, "gap_med": 15.5, "n_releases_24m": 13}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2436, forks 127 (observed 2026-08-28T04:06:51.442344+00:00)

## What it is
Saloon is a PHP library for rapidly building third-party API integrations and SDKs using Connector and Request classes. It is framework-agnostic with a dedicated Laravel plugin and ships with plugins for caching, rate limiting, pagination, OAuth2, and testing utilities.

## Use cases
- build a PHP SDK for a third-party REST API
- wrap an external API in clean connector and request classes
- handle OAuth2 authentication for an API integration
- add caching and rate limiting to API calls
- paginate through API results with cursor or offset pagination
- mock and record API responses in tests
- generate an SDK from an OpenAPI spec or Postman collection

## When to choose
- you are building reusable API integrations or SDKs in PHP
- you want a standardized, testable structure for API calls across a team
- you use Laravel and want Artisan generators, facades, and testing helpers
- you need built-in OAuth2, pagination, caching, or rate-limit handling

## When to avoid
- you just need a one-off simple HTTP request - plain Guzzle or the PSR-18 client is lighter
- you are not working in PHP
- you need a full-featured API gateway or server-side API framework rather than a client-side integration library

## Facets
- artifact type: library
- maturity: active
- function: http-client, api-framework, sdk, middleware, caching, rate-limiting, testing
- domain: web-development, apis, developer-tools, backend
- platform: php
- tags: api-integrations, api-wrapper, guzzle, framework-agnostic, oauth2, pagination, sdk-builder, laravel

## Member repositories
- saloonphp/saloon (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:51.442344+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:31:01.543213+00:00, confidence not recorded.
  - homepage: https://docs.saloon.dev (fetched 2026-08-29T10:12:28.837804+00:00, sha 695d3cc6490a)
  - site_page: https://docs.saloon.dev/the-basics/installation (fetched 2026-08-29T10:12:28.840777+00:00, sha db222660bc52)
  - site_page: https://docs.saloon.dev/installable-plugins/pagination (fetched 2026-08-29T10:12:28.842703+00:00, sha b177d026fa10)
  - site_page: https://docs.saloon.dev/installable-plugins/laravel-integration (fetched 2026-08-29T10:12:28.844909+00:00, sha 229efd0e355c)
  - site_page: https://docs.saloon.dev/installable-plugins/caching-responses (fetched 2026-08-29T10:12:28.846466+00:00, sha ba58afdd1c15)
  - site_page: https://docs.saloon.dev/installable-plugins/handling-rate-limits (fetched 2026-08-29T10:12:28.848120+00:00, sha 9ba968a1a24f)
  - site_page: https://docs.saloon.dev/installable-plugins/lawman (fetched 2026-08-29T10:12:28.850019+00:00, sha d388e5cc2961)
  - site_page: https://docs.saloon.dev/installable-plugins/sdk-generator (fetched 2026-08-29T10:12:28.851704+00:00, sha 895d4e509b40)
  - site_page: https://docs.saloon.dev/installable-plugins/xml-wrangler (fetched 2026-08-29T10:12:28.853174+00:00, sha 4c3fc91907d7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
