Laravel exchange from 1C.
You can install the package via composer:
composer require altynbek07/laravel-exchange-1c
You should set these environment variables in your .env
file:
EXCHANGE_1C_LOGIN=YourLogin
EXCHANGE_1C_PASSWORD=YourPassword
You can publish the config file with:
php artisan vendor:publish --provider="Altynbek07\Exchange1C\Exchange1CServiceProvider" --tag="config"
This is the contents of the published config file:
<?php
use Altynbek07\Exchange1C\Interfaces\GroupInterface;
use Altynbek07\Exchange1C\Interfaces\OfferInterface;
use Altynbek07\Exchange1C\Interfaces\ProductInterface;
return [
/**
*
*/
'exchange_path' => 'exchange-1c',
/**
*
*/
'import_dir' => storage_path('app/exchange-1c'),
/**
*
*/
'login' => env('EXCHANGE_1C_LOGIN', 'admin'),
/**
*
*/
'password' => env('EXCHANGE_1C_PASSWORD', 'admin'),
/**
*
*/
'use_zip' => false,
/**
*
*/
'file_part' => 0,
/**
*
*/
'logging' => true,
/**
*
*/
'importFiles' => ['import.xml', 'offers.xml'],
/**
*
*/
'models' => [
GroupInterface::class => \App\Models\Category::class,
ProductInterface::class => \App\Models\Product::class,
OfferInterface::class => \App\Models\Offer::class,
],
];
TODO
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.