Download the PHP package lensen/base-erp-sdk without Composer

On this page you can find all versions of the php package lensen/base-erp-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package base-erp-sdk

base-erp-sdk (Baselinker)

Baselinker (Base ERP) PHP SDK 组件,基于 exewen 组件风格开发,参考 temu-php-sdk-new 架构。

API 说明

初始化

鉴权配置

SDK 通过 X-BL-Token 请求头携带 Token。setAuth() 支持三种来源(按优先级):

  1. 显式传入:AuthFacade::setAuth('123-ABC-...')
  2. 自定义 env key:AuthFacade::setAuth('', BaseErpEnum::CHANNEL_API, 'MY_TOKEN_KEY')
  3. 默认 env key BASE_ERP_TOKEN:在 .env 配置后无需传参

推荐:在 .env 中配置

使用示例

已实现接口

OrderFacade

方法 描述
getOrders(array $params) 获取订单列表
getJournalList(array $params) 获取订单事件日志(增量)
getOrderReturns(array $params) 获取订单退货列表
getOrderSources(array $params = []) 获取订单来源(市场/平台)列表

ShippingFacade

方法 描述
createPackageManual(array $params) 手动创建运单包裹
getCouriersList(array $params) 获取可用快递公司列表

AuthFacade

方法 描述
setAuth(string $accessToken = '', string $channel = ..., string $envKey = 'BASE_ERP_TOKEN') 设置 API Token(默认从 env BASE_ERP_TOKEN 读取)

All versions of base-erp-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
exewen/facades Version ^2
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lensen/base-erp-sdk contains the following files

Loading the files please wait ...