happydemon/saloon-utils

Utilities for building Saloon SDKs

dev-main 2025-07-08 21:07 UTC

This package is auto-updated.

Last update: 2025-07-08 21:07:58 UTC


README

Latest Version on Packagist Tests Status Tests Coverage

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