Download the PHP package craigpotter/barstool without Composer
On this page you can find all versions of the php package craigpotter/barstool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download craigpotter/barstool
More information about craigpotter/barstool
Files in craigpotter/barstool
Package barstool
Short Description A Laravel package for logging Saloon Requests & Response.
License MIT
Homepage https://github.com/craigpotter/barstool
Informations about the package barstool
Barstool
[!CAUTION] This package is currently in development and using in production should be at your own risk. Breaking changes could still happen before a stable v1.0. Please check back soon for updates.
Bartool is a dedicated Laravel package to help you keep track of your Saloon requests & responses.
Barstool will allow you to easily view, search, and filter your logs directly in your database tool of choice.
The package is designed to be as simple as possible to get up and running, with minimal configuration required.
So pull up a barstool, grab a drink, and let's get logging in the Saloon! Yeehaw!
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
You should also set up Laravel Model Pruning in your scheduler. Please check the Laravel Documentation for your version to know where to put the code below.
Usage
That's all folks! Once installed, it will start logging your Saloon requests automatically. Check the config out for more control.
Here are some of the things you can see with Barstool:
- Request Method
- Connector Used
- Request Used
- Request URL
- Request Headers
- Request Body
- Response Status Code
- Response Headers
- Response Body
- Response Duration
The logging will even log fatal errors caused by your saloon requests so you can see what went wrong.
[!TIP] We will be adding more features soon, so keep an eye out for updates!
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Craig Potter
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of barstool with dependencies
illuminate/contracts Version ^10.0 | ^11.0 | ^12.0
saloonphp/saloon Version ^3.10.0
spatie/laravel-package-tools Version ^1.16.4