PHP code example of bxshef / leadfinish

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

    

bxshef / leadfinish example snippets


'allowed_users' => [
    'value' => [44, 562],   // <- сюда ID из шага 1
    'readonly' => false,
],

'allowed_users' => [
    'value' => [1],
    'readonly' => false,
],

'lock' => [
    'value' => [
        'soft_from' => '2026-09-17',   // с этого дня — напоминание с отсчётом
        'hard_from' => '2026-09-21',   // с этого дня — подбор не открывается
        'off' => false,                // рубильник «оформлено»
        'users' => [],                 // кого касается; пусто — всех
    ],
    'readonly' => false,
],