Giter Club home page Giter Club logo

alibaba's Introduction

阿里大于(鱼) - v2.0

PS:阿里 github.com/wenjinwu/alibaba

更新

v2.0.3 (2016-10-12)

  • 新增沙箱配置

功能

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

环境

安装

composer require wengoldwu/alibaba

使用

<?php
use alibaba\Api\alibaba\sms\AlibabaSms;
use alibaba\Api\alibaba\email\EmailSend;
use alibaba\Api\alibaba\email\AcsClient;

//api发送邮件
$config = [
    'accessKeyId'=>'',
    'accessKeySecret'=>'',
    'accountName'=>'',
    'fromAlias'=>'',
];
$client = new AcsClient($config);
$response = $client->singleSendMail('正文','主题','接收邮箱','昵称');

//api短信
$config = [
    'accessKeyId'=> '',
    'accessKeySecret'=> '',
    'signName'=> '',
    'templateCode'=> '',
];
$alibabaSms = new AlibabaSms($config);
$send = $alibabaSms ->send_verify('手机号',['code'=>112]);

//PHPMailer发送邮件 (成功返回1 ,否则为false)
$EmailSend = EmailSend::send_mail('接收邮箱', '主题', '正文');

// 返回结果
print_r($EmailSend);
print_r($send);
print_r($response);
?>

帮助

  • 意见、BUG反馈: github.com/wenjinwu/alibaba

支持

捐赠

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

微信

支付宝

License

  • MIT

alibaba's People

Contributors

wenjinwu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.