/saloon

Build beautiful API integrations and SDKs with Saloon 🤠

Primary LanguagePHPMIT LicenseMIT

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

<?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 PHP 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

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 ✨

Support This Project

Buy Me a Coffee at ko-fi.com