crustum / saloon
The official CakePHP plugin for Saloon
Package info
Type:cakephp-plugin
pkg:composer/crustum/saloon
Requires
- php: >=8.2
- cakephp/cakephp: ^5.0
- saloonphp/saloon: ^4.0
- symfony/finder: ^6.4 || ^7.0 || ^8.0
Requires (Dev)
- cakephp/bake: ^3.0
- cakephp/cakephp-codesniffer: ^5.0
- pestphp/pest: ^3.8 || ^4.1
- pestphp/pest-plugin-arch: ^3.1 || ^4.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5.5 || ^12.5
- rector/rector: ^2.5
- saloonphp/cache-plugin: ^3.0
- saloonphp/rate-limit-plugin: ^2.0
Suggests
- cakephp/bake: Bake commands for generating Saloon integration classes
- cakephp/queue: Queue middleware for rate-limited API jobs
- saloonphp/cache-plugin: Response caching for Saloon requests
- saloonphp/pagination-plugin: Automatic API pagination
- saloonphp/rate-limit-plugin: Client-side rate limiting
README
The Saloon plugin integrates Saloon with CakePHP for building elegant HTTP API clients and SDKs.
Saloon provides an object-oriented approach to requests, authentication, pagination, caching, and rate limiting. This plugin adds CakePHP event dispatching for HTTP traffic, Bake generators for connectors and requests, testing helpers, and bridges to CakePHP cache for response caching and rate limiting.
Requirements
- PHP 8.2+
See Versions.md for the supported CakePHP versions.
Documentation
For documentation, as well as tutorials, see the docs directory of this repository.
License
Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.