• Stars
    star
    1,518
  • Rank 30,867 (Top 0.7 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 3 years ago
  • Updated over 1 year 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
606
star
2

lasso

🐎 Lasso is a Laravel package created to make your deployments blazing fast.
PHP
341
star
3

Wagonwheel

☸️ Offer an online version of your Laravel emails to users.
PHP
247
star
4

ssh-php

The ridiculously simple starting point for building PHP SSH apps! 🔥
PHP
237
star
5

laravel-chunkable-jobs

📑 Split Laravel jobs into multiple separate job chunks
PHP
83
star
6

saloon-laravel

Laravel package for Sammyjo20/Saloon
PHP
32
star
7

laravel-veevalidate

JS package that will handle your Laravel errors and automatically inject them into a VeeValidate instance ✨
JavaScript
21
star
8

saloon-docs

Documentation for Saloon
20
star
9

saloon-sdk-template

💅 SDK template repository for building SDKs with Saloon v1
PHP
8
star
10

saloon-rate-limiter-plugin

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

pokeapi-sdk

Example PHP SDK for Pokéapi built with Saloon v2
PHP
7
star
12

package-template

Template repository for my PHP packages
PHP
5
star
13

ssh-php-docker

Dockerfile for ssh-php
Go
4
star
14

saloon-v2-spotify-example

Example Spotify OAuth2 Integration with Saloon v2.
JavaScript
4
star
15

cloudflare-cache-buster

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

saloon-cache-plugin

Official plugin for caching Saloon responses
PHP
3
star
17

saloon-http-sender

Laravel HTTP Client Sender for Saloon v2
PHP
3
star
18

xml-to-array

🔀 Convert an XML string into an easy to understand array
PHP
2
star
19

saloon-spotify-example

Example Spotify OAuth2 Integration with Saloon.
JavaScript
2
star
20

saloon-fixture-sdk-example

Saloon example SDK that uses Fixtures
PHP
1
star
21

saloon-pagination-v2

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

laravel-haystack-docs

Documentation for Laravel Haystack
1
star