PHP code example of happyproff / yii-processlock

1. Go to this page and download the library: Download happyproff/yii-processlock 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/ */

    

happyproff / yii-processlock example snippets


'components' => [
    ...,
    'processLock' => [
        'class' => 'happyproff\YiiProcessLock\ProcessLock',
    ],
    ...
]

Yii::app()->processLock->checkIn('SCRIPT_ID');