PHP code example of danielcoulbourne / verbs-sync

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

    

danielcoulbourne / verbs-sync example snippets


// In app/Console/Kernel.php
protected function schedule(Schedule $schedule)
{
    // Sync events every hour
    $schedule->command('verbs:sync')->hourly();
    
    // Or with options
    $schedule->command('verbs:sync --types=user.created,order.placed --limit=200')
        ->dailyAt('02:00');
}
bash
php artisan vendor:publish --provider="DanielCoulbourne\VerbsSync\VerbsSyncServiceProvider"
bash
php artisan migrate
bash
php artisan verbs:sync
bash
php artisan verbs:sync
bash
php artisan verbs:sync --types=user.created,user.updated
bash
php artisan verbs:sync --since="2023-06-01T00:00:00Z"
bash
php artisan verbs:sync --dry-run