eurowireny / ac-connector
此包已被 放弃 且不再维护。未建议替换包。
AC 连接器
v8.0.10
2021-09-17 11:33 UTC
Requires
- php: ^8.0
- ext-soap: *
- eurofirany/connectors-queue: ^8.0
- sourcetoad/soapy: ^1.3
README
要求
- Laravel ^8.0
- PHP ^8.0
- ext-soap
安装
首先使用 composer 安装包
composer require eurofirany/ac-connector
迁移队列表
php artisan migrate
然后将公共配置文件移至您的应用配置文件夹
php artisan vendor:publish --tag=ac_config
这将在 config 文件夹中生成 ac.php 文件
'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 框架
将以下行放入 bootstrap/app.php 文件中
$app->register(\Eurofirany\AcConnector\Providers\AcConnectorServiceProvider::class);
$app->register(\Eurofirany\Microservices\Providers\MicroservicesConnectorServiceProvider::class);
$app->configure('ac');
要发布供应商配置,安装 laravelista/lumen-vendor-publish 包或直接创建 ac.php 文件