flc1125 / Alidayu
Licence: mit
阿里大于(鱼)API接口-SDK
Stars: ✭ 186
Projects that are alternatives of or similar to Alidayu
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
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
Remarkableapi
Docs and implementation of the reMarkable file sync API
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
阿里大于(鱼) - v2.0
PS:阿里短信 https://github.com/flc1125/dysms
更新
v2.0.6 (2017-08-12)
- fixed #6
v2.0.5 (2017-01-25)
- 修复autoload.php https://github.com/flc1125/alidayu/issues/5
v2.0.4 (2016-10-25)
- 新增自动载入功能(不依靠composer)
- 新增Client::request快捷调用方法
v2.0.3 (2016-10-12)
- 新增沙箱配置
功能
待测
:因个人开发者,阿里大于权限相对较低。暂时无法测试;功能已开发,如测试可用,请告知~~
环境
- PHP >= 5.4
- composer
安装
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);
?>
帮助
支持
- 官方网址: https://www.alidayu.com/
- 官方API文档: https://api.alidayu.com/doc2/apiList.htm
- composer: https://getcomposer.org/
捐赠
如果你觉得本扩展对你有帮助,请捐赠以表支持,谢谢~~
![]() 微信 |
![]() 支付宝 |
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].