combindma / jumia
This is my package Jumia
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
Installation
You can install the package via composer:
composer require combindma/jumia
You can publish the config file with:
php artisan vendor:publish --tag="jumia-config"
This is the contents of the published config file:
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, ];
Usage
You should create JumiaHelper to generate name, description and price.
You should also create JumiaProductAttributes trait and add it to Product Model.
Attach to Product Category these variables: meta[jumia_id_category], meta[jumia_string_category], meta[jumia_seo_category]
Add HasJumiaFeed trait to ProductController.
Add 3 methods in ProductController: addProductToJumia, syncProductWithJumia, syncProductImageWithJumia and add their routes
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.