PHP code example of webdophp / prosystems-integration

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

    

webdophp / prosystems-integration example snippets


use webdophp\ProSystemsIntegration\Jobs\ProSystemsFetchData;

ProSystemsFetchData::dispatch();

use webdophp\ProSystemsIntegration\Jobs\ProSystemsFetchData;

protected function schedule(Schedule $schedule)
{
    $schedule->call(function () {
        ProSystemsFetchData::dispatch();
    })->everyFiveMinutes(); // или любое другое расписание
}

use webdophp\ProSystemsIntegration\Jobs\ProSystemsFetchAllData;

ProSystemsFetchAllData::dispatch();

use webdophp\ProSystemsIntegration\Jobs\ProSystemsFetchAllData;

protected function schedule(Schedule $schedule)
{
    $schedule->call(function () {
        ProSystemsFetchAllData::dispatch();
    })->everyFiveMinutes(); // или любое другое расписание
}
bash
php artisan migrate
bash
php artisan vendor:publish --tag=pro-systems-integration
bash
php artisan vendor:publish --tag=pro-systems-integration-views
bash
> php artisan queue:table
> php artisan migrate
> 
bash
> php artisan queue:work
>