chocofamilyme / laravel-pinba
Integrates pinba with Laravel
Installs: 17 024
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 1
Open Issues: 0
Requires
- php: ^8.0.2
- illuminate/http: ^8.0|^9.0|^10.0
- illuminate/log: ^8.0|^9.0|^10.0
- illuminate/queue: ^8.0|^9.0|^10.0
- illuminate/routing: ^8.0|^9.0|^10.0
Requires (Dev)
- squizlabs/php_codesniffer: ^3.5
- vimeo/psalm: ^4.3
This package is auto-updated.
Last update: 2024-11-02 06:08:51 UTC
README
Laravel pinba middleware and timers integraion
Description
Installation
composer require chocofamilyme/laravel-pinba
Publishing the configuration (optional)
php artisan vendor:publish --provider="Chocofamilyme\LaravelPinba\Providers\PinbaServiceProvider"
Configuration
Pinba
Pinba configuration file is located under config/pinba.php
Usage
There is a Facade for the libary called "Pinba"
Start the timer
$timerId = Pinba::startTimer(string $group, string $type, string $method, string $category);
Stop the timer
Pinba::stopTimer($timerId)
Stop all timers
Pinba::stopAllTimers();
More methods
Just see the class "Chocofamilyme\LaravelPinba\Profiler\PinbaDestination"
Destinations
Pinba
This library sends the data to the pinba server
File
This library sends the data to log file
Null
The data is not beeing sent