mhunesi / yii2-trendyol
Trendyol Entegrasyon Servisleri
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- guzzlehttp/guzzle: ^6.3
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-03-14 17:35:30 UTC
README
Yii2 Trendyol api client
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mhunesi/yii2-trendyol "*"
or add
"mhunesi/yii2-trendyol": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
'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}