happydemon / saloon-utils
Utilities for building Saloon SDKs
Requires
- php: ~8.2|~8.3|~8.4
- illuminate/support: ~11.0|~12.0
- saloonphp/saloon: ^3.0
Requires (Dev)
- orchestra/testbench: ~9|~10
- phpunit/phpunit: ~10.0|~11.0|~12.0
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2025-07-08 21:07:58 UTC
README
Batteries for Saloon.
Take a look at contributing.md to see a to do list.
Installation
Via Composer
composer require happydemon/saloon-utils php artisan vendor:publish --tag saloon-utils.config
Request logger
Ensure your connector uses the HappyDemon\SaloonUtils\Logger\LoggerPlugin
trait.
If request logging is enabled, by default, requests will be logged with the HappyDemon\SaloonUtils\Logger\SaloonRequest
model.
# Disable saloon request logging globally SALOON_REQUEST_LOGS=false
When using the default built-in database logger, you'll have to publish & run migrations:
php artisan vendor:publish --tag saloon-utils.migrations php artisan migrate
You can always bind your own Logger
or overwrite the existing one by binding your implementation to HappyDemon\SaloonUtils\Logger\Contracts\Logger
.
Usage
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a to-do list.
Security
If you discover any security-related issues, please email maxim.kerstens@gmail.com instead of using the issue tracker.
Credits
License
MIT