PHP code example of bentools / crontab-bundle

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

    

bentools / crontab-bundle example snippets

bash
# config/crontab.dist

0 0 * * * php {%kernel.project_dir%}/bin/console your:favorite:command
bash
php bin/console crontab:update --dry-run --dump