min-radish / php-uupt
PHP对UU跑腿API的调用
dev-master
2020-07-16 01:37 UTC
Requires
- php: >=7.0.0
- min-radish/php-curl: ~1.2
This package is auto-updated.
Last update: 2025-04-16 12:02:45 UTC
README
PHP 对UU跑腿接口的调用
需自定义一个类并继承 Radish\Uupt\Uupt重写构造函数进行相关配置
<?php
/**
* UU跑腿
* @authors
* @date
*/
namespace common\helper;
class Uupt extends \Radish\Uupt\Uupt
{
public function __construct(array $options = [])
{
if (!$options) {
$options = config('uupt.'); //thinkphp5.1 config函数
}
parent::__construct($options);
}
}