php 对接法大大
- PHP 5.5+.
-
If you use the composer to manage project dependencies, run the following command in your project's root directory:
composer require yiui/fadada "*"
You can also declare the dependency on fadada for PHP in the
composer.json
file."require": { "yiui/fadada": "~1.0.1" }
Then run
composer install
to install the dependency. After the Composer Dependency Manager is installed, import the dependency in your PHP code:require_once __DIR__ . '/vendor/autoload.php';
-
You can also directly download the packaged PHAR File, and introduce the file to your code:
/**
<?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