yiui/fadada

php 版本 fadada (对接法大大)

1.0.6 2020-03-01 03:12 UTC

This package is auto-updated.

Last update: 2024-09-29 05:21:54 UTC


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

联系我们