domatskiy / laravel-exchange1c
Loader from 1c - CommerceML
v0.9.0
2017-11-16 10:23 UTC
Requires
- php: >=5.6.4
- barryvdh/reflection-docblock: ^2.0.4
- illuminate/console: ^5.0,<5.6
- illuminate/filesystem: ^5.0,<5.6
- illuminate/support: ^5.0,<5.6
- laravel/framework: ^5.4
- symfony/class-loader: ^2.3|^3.0
Requires (Dev)
- doctrine/dbal: ~2.3
- illuminate/config: ^5.0,<5.6
- phpunit/phpunit: ^5.4.0
This package is auto-updated.
Last update: 2025-03-18 04:37:19 UTC
README
composer require domatskiy/laravel-exchange1c
add Exchange1CServiceProvider to the providers section of /config/app.php
Domatskiy\Exchange1C\Exchange1CServiceProvider::class
publish
php artisan vendor:publish --provider="Domatskiy\Exchange1C\Exchange1CServiceProvider"
events
'Domatskiy\Exchange1C\Events\ImportComplate' => [ 'App\Listeners\ImportComplate', ],
ImportComplate prop
[type] => catalog
[dir] => /var/www/.../storage/app/1c_exchange
[file] => import0_1.xml
example: class 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)); } }