bqrd-liugj/fengkongcloud-php-sdk

数美风控云php-client-sdk

This package's canonical repository appears to be gone and the package has been frozen as a result.

v1.0.3 2018-09-30 05:58 UTC

This package is auto-updated.

Last update: 2019-04-13 12:48:02 UTC


README

数美天网系统php-sdk

==============

安装

通过 composer 安装:

composer require bqrd/fengkongcloud-php-sdk

修改bootstrap/app.php 增加

$app->register(Bqrd\IShuMei\FengKongCloudServiceProvider::class);

配置

增加配置文件 config/fengkongcloud-php-sdk.php


return  [
    'version'    => '2.0',
    'requestUrl' => 'http://api.fengkongcloud.com/',
    'accessKey'  => '',
    'appId'      => '',
    'options'    => [
       'timeout' => 1.0,
    ],
];

使用

use Bqrd\IShuMei\FengKongCloudFacade;
$register = [
          'tokenId' => '23432',
          'eventName' => '注册',
          'deviceId' => 'dfafasfdas',
          'ip' => '172.16.76.251',
          'signupPlatform' => 'phone',
          'phone' => '18611615170',
          'getCoupon' => 0,
];

FengKongCloudFacade::register($register); //注册