Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chocofamilyme/laravel-pinba
Integrates pinba with Laravel
https://github.com/chocofamilyme/laravel-pinba
Last synced: 12 days ago
JSON representation
Integrates pinba with Laravel
- Host: GitHub
- URL: https://github.com/chocofamilyme/laravel-pinba
- Owner: chocofamilyme
- Created: 2019-11-12T02:17:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T05:02:07.000Z (9 months ago)
- Last Synced: 2024-12-14T06:15:16.618Z (15 days ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# laravel-pinba
Laravel pinba middleware and timers integraion## Description
Integrates [pinba](http://pinba.org/ "Pinba site") with [Laravel](https://laravel.com "Laravel site")## Installation
```bash
composer require chocofamilyme/laravel-pinba
```## Publishing the configuration (optional)
```bash
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
```php
$timerId = Pinba::startTimer(string $group, string $type, string $method, string $category);
```### Stop the timer
```php
Pinba::stopTimer($timerId)
```### Stop all timers
```php
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