PHP code example of altynbek07 / laravel-exchange-1c

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

    

altynbek07 / laravel-exchange-1c example snippets




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,
    ],
];
bash
php artisan vendor:publish --provider="Altynbek07\Exchange1C\Exchange1CServiceProvider" --tag="config"