# Saloon

{% hint style="info" %}
You are viewing the documentation for an **outdated version** of Saloon. If you would like to see the latest, [click here](https://docs.saloon.dev/).
{% endhint %}

<figure><img src="/files/c8ynIcQ61IfjVSYfoGU2" alt=""><figcaption></figcaption></figure>

[![Build Status](https://github.com/saloonphp/saloon/actions/workflows/tests.yml/badge.svg)](https://img.shields.io/github/actions/workflow/status/saloonphp/saloon/tests.yml?label=tests)![](https://img.shields.io/packagist/dm/saloonphp/saloon)![](https://img.shields.io/github/stars/saloonphp/saloon)

### 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. 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.

<figure><img src="/files/tUQDUogujlQTtGwUJtFh" alt=""><figcaption></figcaption></figure>

### 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
* Low on dependencies

{% hint style="info" %}
[Please consider giving Saloon a star on GitHub!](https://github.com/sammyjo20/saloon) (Over 1,000 stars already!)
{% endhint %}

{% content-ref url="/pages/JQmr3tBhWEw7iUv5KLNA" %}
[Installation](/2/getting-started/installation.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.saloon.dev/2/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
