chocofamilyme/laravel-pinba
Integrates pinba with Laravel
20,824
| Install | |
|---|---|
composer require chocofamilyme/laravel-pinba |
|
| Latest Version: | 4.0.0 |
| PHP: | ^8.0.2 |
| Laravel: | 8 · 9 · 10 |
| Older releases: | 5 · 6 · 7 |
| License: | BSD-3-Clause |
| Last Updated: | Apr 2, 2024 |
| Links: | GitHub · Packagist |
Maintainer: chocofamilyme
laravel-pinba
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
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 4.0.0 | ^8.0.2 | ^8.0| | BSD-3-Clause | |
| 3.1.0 | ^8.0.2 | ^8.0| | BSD-3-Clause | |
| 3.0.0 | ^8.0.2 | ^8.0| | BSD-3-Clause | |
| 2.2.1 | >= 7.4.0 | ^8.0 | BSD-3-Clause | |
| 2.2.0 | >= 7.4.0 | ^8.0 | BSD-3-Clause | |
| 2.1 | >= 7.4.0 | ^8.0 | BSD-3-Clause | |
| 2.0.0 | >= 7.4.0 | ^8.0 | BSD-3-Clause | |
| 1.0.2 | >= 7.0.0 | ^6.0| | BSD-3-Clause | |
| 1.0.1 | >= 7.0.0 | ^6.0| | BSD-3-Clause | |
| 1.0.0 | >= 7.0.0 | ^6.0| | BSD-3-Clause | |
| 0.1.2 | >= 7.0.0 | ^5.7| | BSD-3-Clause | |
| 0.1.1 | >= 7.0.0 | ^5.7| | BSD-3-Clause | |
| 0.1 | >= 7.0.0 | ^5.7| | BSD-3-Clause |