PHP code example of alirezavalipour / laravel-time-measurement

1. Go to this page and download the library: Download alirezavalipour/laravel-time-measurement 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/ */

    

alirezavalipour / laravel-time-measurement example snippets



event(new LatencyStartEvent);

/**
  some heavy operation
**/

event(new LatencyFinishEvent( "source of operation for example  Userscontroller@create" , "#tag1#tag2"));

bash
php artisan vendor:publish 
bash
php artisan migrate