• Stars
    star
    1,518
  • Rank 29,667 (Top 0.7 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 2 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build beautiful API integrations and SDKs with Saloon ๐Ÿค 

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

Click here to read the documentation

Introduction

Saloon is a PHP library that provides you with a beautiful API integration framework. It gives you all the tools you need to build and test API integrations for your application or SDKs. 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, object-oriented syntax that standardises the way you interact with APIs
  • No HTTP client configuration is required but can be completely customised if you need
  • Abstract API integrations into classes to keep your code tidy and centralised
  • Great for building your next PHP SDKs or package/library
  • Works great within a team as it provides a standard everyone can follow
  • Application/framework agnostic
  • Packed full of features like request recording, request concurrency, caching, data-transfer-object support, and full Laravel support.
  • Fully extendable and welcomes your own implementations
  • Uses Guzzle, the most popular PHP HTTP client

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

More Repositories

1

laravel-haystack

โšก๏ธ Supercharged job chains for Laravel
PHP
584
star
2

lasso

๐ŸŽ Lasso is a Laravel package created to make your deployments blazing fast.
PHP
335
star
3

Wagonwheel

โ˜ธ๏ธ Offer an online version of your Laravel emails to users.
PHP
246
star
4

laravel-chunkable-jobs

๐Ÿ“‘ Split Laravel jobs into multiple separate job chunks
PHP
80
star
5

saloon-laravel

Laravel package for Sammyjo20/Saloon
PHP
32
star
6

laravel-veevalidate

JS package that will handle your Laravel errors and automatically inject them into a VeeValidate instance โœจ
JavaScript
21
star
7

saloon-docs

Documentation for Saloon
19
star
8

saloon-sdk-template

๐Ÿ’… SDK template repository for building SDKs with Saloon v1
PHP
8
star
9

saloon-rate-limiter-plugin

Adds support for rate limiting in your Saloon integration or SDK
PHP
7
star
10

pokeapi-sdk

Example PHP SDK for Pokรฉapi built with Saloon v2
PHP
7
star
11

package-template

Template repository for my PHP packages
PHP
5
star
12

saloon-cache-plugin

Official plugin for caching Saloon responses
PHP
3
star
13

saloon-v2-spotify-example

Example Spotify OAuth2 Integration with Saloon v2.
JavaScript
3
star
14

saloon-http-sender

Laravel HTTP Client Sender for Saloon v2
PHP
3
star
15

cloudflare-cache-buster

Automate the process of clearing your Cloudflare site's cache with this simple Laravel app.
PHP
2
star
16

xml-to-array

๐Ÿ”€ Convert an XML string into an easy to understand array
PHP
2
star
17

saloon-spotify-example

Example Spotify OAuth2 Integration with Saloon.
JavaScript
2
star
18

saloon-fixture-sdk-example

Saloon example SDK that uses Fixtures
PHP
1
star
19

saloon-pagination-v2

(Work in progress) New Pagination for Saloon v3
PHP
1
star
20

laravel-haystack-docs

Documentation for Laravel Haystack
1
star