{"id":24884461,"url":"https://github.com/craigpotter/barstool","last_synced_at":"2025-07-25T18:42:12.424Z","repository":{"id":275020885,"uuid":"724823607","full_name":"craigpotter/barstool","owner":"craigpotter","description":"A logger for SaloonPHP when using Laravel","archived":false,"fork":false,"pushed_at":"2025-06-16T16:04:27.000Z","size":88,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T02:38:47.942Z","etag":null,"topics":["laravel","saloonphp"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craigpotter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-28T21:38:33.000Z","updated_at":"2025-05-21T07:51:42.000Z","dependencies_parsed_at":"2025-01-30T18:39:11.169Z","dependency_job_id":"e9336d5b-9a31-46df-afe1-9ef34c324743","html_url":"https://github.com/craigpotter/barstool","commit_stats":null,"previous_names":["craigpotter/barstool"],"tags_count":5,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/craigpotter/barstool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpotter%2Fbarstool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpotter%2Fbarstool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpotter%2Fbarstool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpotter%2Fbarstool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craigpotter","download_url":"https://codeload.github.com/craigpotter/barstool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpotter%2Fbarstool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266936385,"owners_count":24009407,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","saloonphp"],"created_at":"2025-02-01T14:27:16.893Z","updated_at":"2025-07-25T18:42:12.416Z","avatar_url":"https://github.com/craigpotter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Barstool \n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/craigpotter/barstool.svg?style=flat-square)](https://packagist.org/packages/craigpotter/barstool)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/craigpotter/barstool/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/craigpotter/barstool/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/craigpotter/barstool/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/craigpotter/barstool/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/craigpotter/barstool.svg?style=flat-square)](https://packagist.org/packages/craigpotter/barstool)\n\n\u003e [!CAUTION]\n\u003e This package is currently in development and using in production should be at your own risk. \n\u003e Breaking changes could still happen before a stable v1.0. Please check back soon for updates.\n\nBartool is a dedicated Laravel package to help you keep track of your [Saloon](https://github.com/saloonphp/saloon) requests \u0026 responses.\n\nBarstool will allow you to easily view, search, and filter your logs directly in your database tool of choice.\n\nThe package is designed to be as simple as possible to get up and running, with minimal configuration required.\n\nSo pull up a barstool, grab a drink, and let's get logging in the Saloon! Yeehaw!\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require craigpotter/barstool\n```\n\nYou can publish and run the migrations with:\n\n```bash\nphp artisan vendor:publish --tag=\"barstool-migrations\"\nphp artisan migrate\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"barstool-config\"\n```\n\nYou 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. \n```php\nuse CraigPotter\\Barstool\\Models\\Barstool;\n\n\nSchedule::command('model:prune', [\n    '--model' =\u003e [Barstool::class],\n])-\u003edaily();\n```\n\n## Usage\n\nThat's all folks! \nOnce installed, it will start logging your [Saloon](https://github.com/saloonphp/saloon) requests automatically.\nCheck the config out for more control. \n\nHere are some of the things you can see with Barstool:\n- Request Method\n- Connector Used\n- Request Used\n- Request URL\n- Request Headers\n- Request Body\n- Response Status Code\n- Response Headers\n- Response Body\n- Response Duration\n\nThe logging will even log fatal errors caused by your saloon requests so you can see what went wrong.\n\u003cp\u003e\u003cimg src=\"/art/fatal_error.png\" alt=\"Screenshot of the fatal error logged in the database\"\u003e\u003c/p\u003e\n\n\u003e [!TIP]\n\u003e We will be adding more features soon, so keep an eye out for updates!\n\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](./.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nIf you discover any security related issues, please email barstool@craigpotter.co.uk instead of using the issue tracker.\n\n## Credits\n\n- [Craig Potter](https://github.com/craigpotter)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigpotter%2Fbarstool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraigpotter%2Fbarstool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigpotter%2Fbarstool/lists"}