mhunesi / yii2-trendyol
Trendyol 集成服务
dev-master
2022-04-14 11:30 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-09-14 16:29:33 UTC
README
Yii2 Trendyol API 客户端
安装
安装此扩展的首选方式是通过composer。
运行以下命令之一
php composer.phar require --prefer-dist mhunesi/yii2-trendyol "*"
或者
"mhunesi/yii2-trendyol": "*"
将以下内容添加到您的composer.json
文件的require部分。
使用方法
扩展安装完成后,只需在您的代码中使用即可
'trendyol' => [ 'class' => \mhunesi\trendyol\Trendyol::class, 'supplierId' => 'supplierId', 'isTestStage' => true, 'apiKey' => 'apiKey', 'apiSecret' => 'apiSecret', 'clientOptions' => [ //guzzle client options 'debug' => false ] ], 'i18n' => [ 'translations' => [ 'trendyol' => [ 'class' => 'yii\i18n\PhpMessageSource', 'basePath' => '@mhunesi/trendyol/messages', ], ], ] 'controllerMap' => [ 'migrate' => [ 'class' => 'luya\console\commands\MigrateController', 'migrationNamespaces' => [ //.. ], 'migrationPath' => [ //.. '@mhunesi/trendyol/migrations' ] ], 'trendyol' => [ 'class' => 'mhunesi\trendyol\commands\TrendyolController' ] ], php yii trendyol/other-financials {startDate} {endDate} php yii trendyol/settlement {startDate} {endDate}