core45/laravel-baselinker
最新稳定版本:1.0.2
Composer 安装命令:
composer require core45/laravel-baselinker
包简介
Laravel Baselinker API integration
README 文档
README
[![Latest Version on Packagist][ico-version]][link-packagist] [![Total Downloads][ico-downloads]][link-downloads]
Installation
Install the package with composer:
composer require core45/laravel-baselinker
Optionally ublish the package files:
php artisan vendor:publish --provider="Core45\LaravelBaselinker\BaselinkerServiceProvider"
The package should be auto-discovered by Laravel.
After installation add BASELINKER_TOKEN={your-token} to your .env file.
Usage
Baselinker API is devided into 4 main parts:
- Product catalog
- External storages
- Orders
- Courier shipments
- Products storage [OBSOLETE] - not implemented in this package
To access any of the methods use Baselinker facade and use one of the main shortcut methods followed by the API method name.
- Baselinker::catalog()->someMethod('someParameters')
- Baselinker::externalStorage()->...
- Baselinker::order()->...
- Baselinker::shipment()->...
Examples:
use Core45\LaravelBaselinker\Facades\Baselinker; $categories = Baselinker::categories()->getCategories();
use Core45\LaravelBaselinker\Facades\Baselinker; $catalog = Baselinker::catalog(); $result = $catalog->addInventoryPriceGroup('For Spain', 'Price group for Spain', 'EUR');
All of the available methods you can find in Baselinker API docs:
If you find any errors or would like to help with improving and maintaining the package please leave the comment.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-24