All Projects → flc1125 → Alidayu

flc1125 / Alidayu

Licence: mit
阿里大于(鱼)API接口-SDK

Projects that are alternatives of or similar to Alidayu

Dog Ceo Api
The API hosted at dog.ceo
Stars: ✭ 393 (+111.29%)
Mutual labels:  api, composer
Laravel Api
Laravel API starter Kit will provide you with the tools for making API's that everyone will love
Stars: ✭ 334 (+79.57%)
Mutual labels:  api, composer
Twilio Java
A Java library for communicating with the Twilio REST API and generating TwiML.
Stars: ✭ 371 (+99.46%)
Mutual labels:  api, sms
Twilio Csharp
Twilio C#/.NET Helper Library for .NET Framework 3.5+ and supported .NET Core versions
Stars: ✭ 541 (+190.86%)
Mutual labels:  api, sms
Africastalking Java
Official Java SDK
Stars: ✭ 27 (-85.48%)
Mutual labels:  api, sms
Satis Server
🐳 Private, self-hosted Composer/Satis repository with unlimited private and open-source packages and support for Git, Mercurial, and Subversion. HTTP API, HTTPs support, webhook handler, scheduled builds, Slack and HipChat integration.
Stars: ✭ 96 (-48.39%)
Mutual labels:  api, composer
Lara Eye
Filter your Query\Builder using a structured query language
Stars: ✭ 39 (-79.03%)
Mutual labels:  api, composer
Novagram
An Object-Oriented PHP library for Telegram Bots
Stars: ✭ 112 (-39.78%)
Mutual labels:  api, composer
Lumen Microservice
Lumen on Docker - Skeleton project with Nginx, MySQL & PHP 7 | Aws ECS, Google Kubernates, Azure Container Engine
Stars: ✭ 183 (-1.61%)
Mutual labels:  api
Demo
Demo app for the API Platform framework
Stars: ✭ 184 (-1.08%)
Mutual labels:  api
Deepr
A specification for invoking remote methods, deeply!
Stars: ✭ 181 (-2.69%)
Mutual labels:  api
Remarkableapi
Docs and implementation of the reMarkable file sync API
Stars: ✭ 183 (-1.61%)
Mutual labels:  api
Linebot
🤖 SDK for the LINE Messaging API for Node.js
Stars: ✭ 184 (-1.08%)
Mutual labels:  api
Huobi java
Java SDK for Huobi Spot API
Stars: ✭ 180 (-3.23%)
Mutual labels:  api
Dropbox Api
A minimal implementation of Dropbox API v2
Stars: ✭ 183 (-1.61%)
Mutual labels:  api
Wpstarter
Easily bootstrap whole site Composer packages for WordPress.
Stars: ✭ 182 (-2.15%)
Mutual labels:  composer
Php Google Translate Free
PHP class to use the Google Translator API for free.
Stars: ✭ 182 (-2.15%)
Mutual labels:  api
Node Instagram
Instagram api client for node that support promises.
Stars: ✭ 185 (-0.54%)
Mutual labels:  api
Wechatvideocourse
《微信公众号+小程序快速开发》视频教程课件及代码
Stars: ✭ 185 (-0.54%)
Mutual labels:  api
Apicheck
The DevSecOps toolset for REST APIs
Stars: ✭ 184 (-1.08%)
Mutual labels:  api

阿里大于(鱼) - v2.0

Latest Stable Version Total Downloads php>=5.4 License 996.icu LICENSE

PS:阿里短信 https://github.com/flc1125/dysms

更新

v2.0.6 (2017-08-12)

  • fixed #6

v2.0.5 (2017-01-25)

v2.0.4 (2016-10-25)

  • 新增自动载入功能(不依靠composer)
  • 新增Client::request快捷调用方法

v2.0.3 (2016-10-12)

  • 新增沙箱配置

功能

待测:因个人开发者,阿里大于权限相对较低。暂时无法测试;功能已开发,如测试可用,请告知~~

环境

安装

composer require flc/alidayu

require '/path/to/alidayu/autoload.php';

使用

<?php
use Flc\Alidayu\Client;
use Flc\Alidayu\App;
use Flc\Alidayu\Requests\AlibabaAliqinFcSmsNumSend;
use Flc\Alidayu\Requests\IRequest;

// 配置信息
$config = [
    'app_key'    => '*****',
    'app_secret' => '************',
    // 'sandbox'    => true,  // 是否为沙箱环境,默认false
];


// 使用方法一
$client = new Client(new App($config));
$req    = new AlibabaAliqinFcSmsNumSend;

$req->setRecNum('13312311231')
    ->setSmsParam([
        'number' => rand(100000, 999999)
    ])
    ->setSmsFreeSignName('叶子坑')
    ->setSmsTemplateCode('SMS_15105357');

$resp = $client->execute($req);

// 使用方法二
Client::configure($config);  // 全局定义配置(定义一次即可,无需重复定义)

$resp = Client::request('alibaba.aliqin.fc.sms.num.send', function (IRequest $req) {
    $req->setRecNum('13312311231')
        ->setSmsParam([
            'number' => rand(100000, 999999)
        ])
        ->setSmsFreeSignName('叶子坑')
        ->setSmsTemplateCode('SMS_15105357');
});

// 返回结果
print_r($resp);
print_r($resp->result->model);
?>

帮助

支持

捐赠

如果你觉得本扩展对你有帮助,请捐赠以表支持,谢谢~~

微信

支付宝

License

  • MIT
  • Anti 996
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].