PHPackages                             niladam/salette - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. niladam/salette

ActiveLibrary[API Development](/categories/api)

niladam/salette
===============

🚀Easily build API integrations into your legacy application.

1.0.2(9mo ago)11661MITPHPPHP &gt;=7.4 &lt; 8.0CI passing

Since Jul 21Pushed 9mo agoCompare

[ Source](https://github.com/niladam/salette)[ Packagist](https://packagist.org/packages/niladam/salette)[ RSS](/packages/niladam-salette/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (5)Used By (1)

[![A legacy focus backport of Saloon](/art/salette_transparent.png)](/art/salette_transparent.png)

Salette
=======

[](#salette)

The power of [Saloon](https://github.com/saloonphp/saloon) - for PHP 7.4
------------------------------------------------------------------------

[](#the-power-of-saloon---for-php-74)

[![Downloads](https://camo.githubusercontent.com/402e2a9dbe04f9d697eb72309af88b7e7aab07adb95f3a505099c5323b5663ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e696c6164616d2f73616c657474652e737667)](https://packagist.org/packages/niladam/salette)[![Tests](https://github.com/niladam/salette/workflows/Tests/badge.svg)](https://github.com/niladam/salette/actions?query=workflow%3ATests)[![PHP 7.4](https://camo.githubusercontent.com/8a0234efb25bffbee74e0444a52c7796dee73c2785c9908a8c05ecf6eb0f5ff3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e342d626c75652e737667)](https://php.net)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

**Salette** is a port of the [Saloon](https://github.com/saloonphp/saloon) PHP package, tailored specifically for legacy applications that require PHP 7.4 compatibility.

This package exists with **permission from the original author [Sam Carré](https://github.com/Sammyjo20)** and aims to mirror and ensure the functionality and developer experience of **Saloon** as closely as possible within the limitations of PHP 7.4.

Tip

If your application uses **PHP 8.0 or higher**, you should use the [official Saloon package](https://github.com/saloonphp/saloon) instead.

What is Salette?
----------------

[](#what-is-salette)

Salette helps you build clean, reusable **API integrations** and SDKs in **PHP 7.4**, in the same way you would do using Saloon.

It organizes your requests into structured classes, centralizing your API logic and making your codebase more maintainable.

Key Features
------------

[](#key-features)

- 🚀 **PHP 7.4 Compatible** - Built specifically for legacy applications
- 🔧 **Simple &amp; Modern** - Easy-to-learn, clean API for building integrations
- 🏗️ **Built on Guzzle** - Leverages the most popular and feature-rich HTTP client
- 🧪 **Built-in Testing** - Mock responses, request recording, and test your integrations easily
- 🔐 **Authentication** - Support for OAuth2, Basic Auth, Token Auth, and more
- 📦 **Request/Response Handling** - Built-in support for JSON, XML, Form data, and more
- 🔄 **Advanced Features** - Request concurrency, caching (soon), Dto support
- 🎯 **Team-Friendly** - Provides a standard everyone can follow
- 🏢 **Framework Agnostic** - Vanilla PHP or any PHP framework that supports composer :)
- 📚 **Laravel Support** - Full Laravel integration and support (soon)
- ⚡ **Lightweight** - Few dependencies, fast performance

Quick Start
-----------

[](#quick-start)

### 1. Install the package

[](#1-install-the-package)

```
composer require niladam/salette
```

### 2. Generate a Working Example

[](#2-generate-a-working-example)

The fastest way to get started is to generate a ready-to-use integration:

```
php vendor/niladam/salette/examples/create-integration.php
```

Or, in code:

```
use Salette\Helpers\Stub;

Stub::create(); // Instantly creates a JsonPlaceholder integration you can use and modify
```

This will create:

- `app/Http/Integrations/JsonPlaceholder/JsonPlaceholderConnector.php`
- `app/Http/Integrations/JsonPlaceholder/Requests/GetPostsRequest.php`
- `app/Http/Integrations/JsonPlaceholder/Requests/CreatePostRequest.php`

You can use these classes right away, and just change the URL, endpoints, or request bodies to match your API.

### 3. Using Your Integration

[](#3-using-your-integration)

```
use App\Http\Integrations\JsonPlaceholder\JsonPlaceholderConnector;
use App\Http\Integrations\JsonPlaceholder\Requests\GetPostsRequest;
use App\Http\Integrations\JsonPlaceholder\Requests\CreatePostRequest;

$connector = new JsonPlaceholderConnector();

// GET /posts
$response = $connector->send(new GetPostsRequest());
$data = $response->json();

// POST /posts
$response = $connector->send(new CreatePostRequest());
$data = $response->json();
```

---

For advanced usage, options, and customization, see:

- **[Integration Stubbing Guide](docs/integration-stubbing.md)**
- **[Saloon Documentation](https://docs.saloon.dev/)**

Credits
-------

[](#credits)

- [Sam Carré](https://github.com/Sammyjo20)
- [All Contributors](https://github.com/Sammyjo20/Saloon/contributors)
- [Madalin Tache](https://github.com/niladam)
- [Catalin Pruna](https://github.com/PrunaCatalin)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance55

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

298d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ccbd5f80c8e1c691272c1d4652e4da750d3ba4e08bcc2a8f9801f7f3aadf975?d=identicon)[niladam](/maintainers/niladam)

---

Top Contributors

[![niladam](https://avatars.githubusercontent.com/u/4151765?v=4)](https://github.com/niladam "niladam (8 commits)")[![PrunaCatalin](https://avatars.githubusercontent.com/u/26250063?v=4)](https://github.com/PrunaCatalin "PrunaCatalin (2 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/niladam-salette/health.svg)

```
[![Health](https://phpackages.com/badges/niladam-salette/health.svg)](https://phpackages.com/packages/niladam-salette)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
