PHP code example of chocofamilyme / laravel-pinba

1. Go to this page and download the library: Download chocofamilyme/laravel-pinba library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chocofamilyme / laravel-pinba example snippets


$timerId = Pinba::startTimer(string $group, string $type, string $method, string $category);

Pinba::stopTimer($timerId)

Pinba::stopAllTimers();
bash
php artisan vendor:publish --provider="Chocofamilyme\LaravelPinba\Providers\PinbaServiceProvider"