Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhunesi/yii2-trendyol
Trendyol API Component
https://github.com/mhunesi/yii2-trendyol
php trendyol trendyol-api-client yii2 yii2-extension
Last synced: 17 days ago
JSON representation
Trendyol API Component
- Host: GitHub
- URL: https://github.com/mhunesi/yii2-trendyol
- Owner: mhunesi
- Created: 2022-04-13T11:46:25.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T11:30:54.000Z (over 2 years ago)
- Last Synced: 2024-11-13T10:57:51.194Z (about 2 months ago)
- Topics: php, trendyol, trendyol-api-client, yii2, yii2-extension
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 Trendyol
============
Yii2 Trendyol api clientInstallation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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 :
```php
'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}```