combindma / jumia
此包已被弃用且不再维护。未建议替代包。
这是我的包 Jumia
1.0.0
2021-07-09 17:34 UTC
Requires
- php: ^8.0
- combindma/dashui: ^1.0
- illuminate/contracts: ^8.0
- maatwebsite/excel: ^3.1
- spatie/array-to-xml: ^2.16
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- vimeo/psalm: ^4.4
This package is auto-updated.
Last update: 2022-11-09 20:50:24 UTC
README
安装
您可以通过composer安装此包
composer require combindma/jumia
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="jumia-config"
这是已发布配置文件的内容
return [ /* * The user id, should be an email used in seller center. */ 'user_id' => env('JUMIA_USER_ID', ''), /* * The api url under which data will be sent. */ 'api_url' => env('JUMIA_API_URL', 'https://sellercenter-api.jumia.ma'), /* * The api key used for authentication. */ 'api_key' => env('JUMIA_API_KEY', null), /* * Enable or disable sync with the seller center. Useful for local development. */ 'enabled' => env('JUMIA_SYNC_ENABLED', false), /* * These brands will be deleted from title and description */ 'blackList' => [ 'daniel wellington', 'tissot', 'guess', 'swatch', 'hugo boss', 'boss', 'balmain', 'longines', 'emporio armani', 'armani' ], /* * This will be added to xml feed */ 'default_weight' => '0.5kg', /* * This will be added to xml feed */ 'default_warranty_duration' => 24, /* * This will be added to the price of product */ 'price_commission' => 15, ];
用法
您应该创建JumiaHelper来生成名称、描述和价格。
您还应该创建JumiaProductAttributes特性并将其添加到Product模型中。
将以下变量附加到产品类别:meta[jumia_id_category]、meta[jumia_string_category]、meta[jumia_seo_category]
将HasJumiaFeed特性添加到ProductController。
在ProductController中添加3个方法:addProductToJumia、syncProductWithJumia、syncProductImageWithJumia以及它们的路由
贡献
请参阅CONTRIBUTING以获取详细信息。
安全漏洞
请参阅我们的安全策略以了解如何报告安全漏洞。
鸣谢
许可
MIT许可证(MIT)。请参阅许可文件以获取更多信息。