yiui/fadada

fadada for php (对接法大大)

1.0.6 2020-03-01 03:12 UTC

This package is auto-updated.

Last update: 2024-05-29 04:09:46 UTC


README

Overview

php 对接法大大

Run environment

  • 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:

Quick use

Common classes

安装

/**
<?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);
    }
}
***/

License

  • MIT

Contact us