eurofirany/ac-connector

This package is abandoned and no longer maintained. No replacement package was suggested.

Connector for AC

v8.0.10 2021-09-17 11:33 UTC

This package is auto-updated.

Last update: 2024-01-10 22:49:52 UTC


README

Requirements

  • Laravel ^8.0
  • PHP ^8.0
  • ext-soap

Install

First install package with composer:

composer require eurofirany/ac-connector

Migrate tables for queue

php artisan migrate

Next public config file to your app config folder:

php artisan vendor:publish --tag=ac_config

This generates ac.php file in config folder

'login' => env('AC_LOGIN'),
'password' => env('AC_PASSWORD'),
'password_ac_write' => env('AC_PASSWORD_WRITE'),
'url' => [
    'product-read' => env('AC_PRODUCT_READ_URL', ''),
    'product-write' => env('AC_PRODUCT_WRITE_URL', ''),
    'tema-write' => env('TEMA_WRITE_URL', '')
],

/** Queue Settings */
'queue' => [
    'enabled' => false, // Is queue for connector enabled
    'max_tries' => 3, // Max tries for failed job
    'max_running_jobs' => 5, // Max running jobs at the same time
    'max_wait_seconds' => 300, // Wait seconds when there are too many jobs
    'sleep_seconds' => 10 // Seconds to wait between attempts
]

Lumen Framework

Put this lines in bootstrap/app.php file:

$app->register(\Eurofirany\AcConnector\Providers\AcConnectorServiceProvider::class);
$app->register(\Eurofirany\Microservices\Providers\MicroservicesConnectorServiceProvider::class);

$app->configure('ac');

For publish vendor config install laravelista/lumen-vendor-publish package or just create ac.php file i