PHP code example of maximaster / bitrix-cron
1. Go to this page and download the library: Download maximaster/bitrix-cron 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/ */
maximaster / bitrix-cron example snippets
bash
php ./vendor/bin/bitrix-cron enable-agents
* * * * * php $PROJECT_DIR/vendor/bin/bitrix-cron run-agents $DOCUMENT_ROOT