https://github.com/ledccn/huolala
货拉拉SDK
https://github.com/ledccn/huolala
Last synced: 5 months ago
JSON representation
货拉拉SDK
- Host: GitHub
- URL: https://github.com/ledccn/huolala
- Owner: ledccn
- Created: 2024-08-28T07:42:25.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-29T05:28:17.000Z (almost 2 years ago)
- Last Synced: 2025-10-18T21:56:38.193Z (8 months ago)
- Language: PHP
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 货拉拉SDK使用说明
## 安装
`composer require ledc/huolala`
## 使用说明
开箱即用,只需要传入一个配置,初始化一个实例即可:
```php
use Ledc\Huolala\Config;
//更多配置项,可以查看 配置管理类的属性 Ledc\Huolala\Config
$config = [
'appKey' => '',
'appSecret' => '',
'sandbox' => true,
];
$config = new Config($config)
```
## 二次开发
配置管理类:`Ledc\Huolala\Config`
货拉拉APP业务类:`Ledc\Huolala\AppApi`
你可以继承`Ledc\Huolala\Config`或`Ledc\Huolala\AppApi`,扩展您需要的功能。
在创建实例后,所有的方法都可以有IDE自动补全;
## 捐赠
