yiui / fadada
php 版本 fadada (对接法大大)
1.0.6
2020-03-01 03:12 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-openssl: *
Requires (Dev)
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ~1.0
README
概述
php 版本对接法大大
运行环境
- PHP 5.5+.
安装
-
如果您使用 composer 来管理项目依赖,请在项目根目录下运行以下命令
composer require yiui/fadada "*"
您也可以在
composer.json
文件中声明对 fadada for PHP 的依赖。"require": { "yiui/fadada": "~1.0.1" }
然后运行
composer install
来安装依赖。在 Composer 依赖管理器安装后,将依赖导入您的 PHP 代码require_once __DIR__ . '/vendor/autoload.php';
-
您还可以直接下载打包的 PHAR 文件,并将文件引入到您的代码中
快速使用
常用类
安装
/** <?php namespace common\components; use yiui\fadada\FddServer; /** * * 法大大接口继承, * **/ class Fadada extends FddServer { public $appId; public $appSecret; public $host; public function __construct() { $this->appId = ""; $this->appSecret = ""; $this->host = ''; parent::__construct($this->appId, $this->appSecret, $this->host); } } ***/
许可证
- MIT