PHP code example of domatskiy / laravel-exchange1c

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

    

domatskiy / laravel-exchange1c example snippets


Domatskiy\Exchange1C\Exchange1CServiceProvider::class

'Domatskiy\Exchange1C\Events\ImportComplate' => [
    'App\Listeners\ImportComplate',
    ],

use Illuminate\Support\Facades\Event;

class ImportComplate
{
    /**
     * Handle the event.
     *
     * @param  Event  $event
     * @return void
     */
    public function handle(Event $event)
    {
        \Log::info('event: '. print_r($event, true));
    }
}

php artisan vendor:publish --provider="Domatskiy\Exchange1C\Exchange1CServiceProvider"