altynbek07/laravel-exchange-1c

v0.5-alpha 2021-03-21 09:18 UTC

This package is auto-updated.

Last update: 2024-11-21 17:11:34 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Laravel exchange from 1C.

Installation

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,
    ],
];

Usage

TODO

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email altynbek.kazezov.97@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.