PHPackages                             craigpotter/barstool - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. craigpotter/barstool

Abandoned → [saloonphp/barstool](/?search=saloonphp%2Fbarstool)Library[Logging &amp; Monitoring](/categories/logging)

craigpotter/barstool
====================

A Laravel package for logging Saloon Requests &amp; Response.

v0.7.0(1mo ago)1518.9k↑157.9%4[1 PRs](https://github.com/craigpotter/barstool/pulls)MITPHPPHP ^8.3|^8.4CI passing

Since Jan 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/craigpotter/barstool)[ Packagist](https://packagist.org/packages/craigpotter/barstool)[ Docs](https://github.com/craigpotter/barstool)[ RSS](/packages/craigpotter-barstool/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (28)Versions (17)Used By (0)

Barstool
========

[](#barstool)

Caution

**This package has been moved to [`saloonphp/barstool`](https://github.com/saloonphp/barstool).**This repository is no longer maintained. Please update your `composer.json` to use `saloonphp/barstool` instead.

```
composer remove craigpotter/barstool
composer require saloonphp/barstool
```

[![Latest Version on Packagist](https://camo.githubusercontent.com/80310b5e775d41a171e5d2338a9b2878f670c246c565f6e80500b74cb45f027d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6372616967706f747465722f62617273746f6f6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/craigpotter/barstool)[![Total Downloads](https://camo.githubusercontent.com/55a2993e39adabc4ce5df0ef70336ebc1f28605085bffd50dbbe6da0efa48332/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6372616967706f747465722f62617273746f6f6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/craigpotter/barstool)

Bartool is a dedicated Laravel package to help you keep track of your [Saloon](https://github.com/saloonphp/saloon) requests &amp; 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
------------

[](#installation)

You can install the package via composer:

```
composer require craigpotter/barstool
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="barstool-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="barstool-config"
```

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.

```
use CraigPotter\Barstool\Models\Barstool;

Schedule::command('model:prune', [
    '--model' => [Barstool::class],
])->daily();
```

Usage
-----

[](#usage)

That's all folks! Once installed, it will start logging your [Saloon](https://github.com/saloonphp/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.

[![Screenshot of the fatal error logged in the database](/art/fatal_error.png)](/art/fatal_error.png)

Tip

We will be adding more features soon, so keep an eye out for updates!

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](./.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Craig Potter](https://github.com/craigpotter)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~46 days

Recently: every ~98 days

Total

10

Last Release

54d ago

PHP version history (2 changes)v0.1.0PHP ^8.3

v0.1.1PHP ^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a56cd4733b15c1e79ac26bc1658eb59a35a102250f9f48b929811c29f86bc60?d=identicon)[craigpotter](/maintainers/craigpotter)

---

Top Contributors

[![craigpotter](https://avatars.githubusercontent.com/u/1442635?v=4)](https://github.com/craigpotter "craigpotter (26 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![Sammyjo20](https://avatars.githubusercontent.com/u/29132017?v=4)](https://github.com/Sammyjo20 "Sammyjo20 (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![BinaryKitten](https://avatars.githubusercontent.com/u/67553?v=4)](https://github.com/BinaryKitten "BinaryKitten (2 commits)")[![JonPurvis](https://avatars.githubusercontent.com/u/7534029?v=4)](https://github.com/JonPurvis "JonPurvis (2 commits)")

---

Tags

laravelsaloonphplaravelloggingsaloonphpCraig Potterbarstool

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/craigpotter-barstool/health.svg)

```
[![Health](https://phpackages.com/badges/craigpotter-barstool/health.svg)](https://phpackages.com/packages/craigpotter-barstool)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[spatie/laravel-slack-alerts

Send a message to Slack

3212.6M4](/packages/spatie-laravel-slack-alerts)[spatie/laravel-error-share

Share your Laravel errors to Flare

43965.6k3](/packages/spatie-laravel-error-share)[muhammadsadeeq/laravel-activitylog-ui

A beautiful, modern UI for Spatie's Activity Log with advanced filtering, analytics, and real-time features.

17510.1k](/packages/muhammadsadeeq-laravel-activitylog-ui)[tapp/filament-maillog

Filament plugin to view outgoing mail

2952.6k1](/packages/tapp-filament-maillog)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
