承接 apsg/baselinker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

apsg/baselinker

最新稳定版本:0.1.3

Composer 安装命令:

composer require apsg/baselinker

包简介

Baselinker Integration

README 文档

README

Laravel Baselinker API integration

Latest Version on Packagist Total Downloads

Baselinker docs:

https://api.baselinker.com

Installation

Jus use:

composer require apsg/baselinker

The package should be auto-discovered by Laravel. After installation add the BASELINKER_TOKEN={your-token} to your .env file.

Usage

Use Baselinker facade and use one of shortcut methods:

  • products()
  • categories()
  • orders()
  • storages()

Example:

use Apsg\Baselinker\Facades\Baselinker;

$categories = Baselinker::categories()->getCategories();
Change default storage

Default storage is set to Baselinker's default bl_1. One can change the default storage globally by setting the BASELINKER_STORAGE value in their env file.

To change the storage dynamically use the setStorage(...) helper method on any baselinker support class.

Example:

use Apsg\Baselinker\Facades\Baselinker;

$productsInOtherStorage = Baselinker::products()->setStorage('storage_id');

$products = $productsInOtherStorage->getProductsList();
$newProduct = $productsInOtherStorage->addProduct($someProductData);
Currently covered methods:

See baselinker docs for reference.

Storages:
  • getStoragesList
Categories:
  • addCategory
  • getCategories
Products:
  • addProduct
  • getProductsList
Orders:
  • addOrder
  • getOrderStatusList

统计信息

  • 总下载量: 258
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-04