From 540b5d53d93e0ab31085dadc702567c26fed94ab Mon Sep 17 00:00:00 2001 From: Yanqing Wang Date: Fri, 2 Jun 2017 22:34:17 +0800 Subject: [PATCH] 0.0.1 --- README.md | 5 +++-- composer.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c1746fa..c019398 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ AliyunSMS --------- -阿里云短信发送 +阿里云短信发送sdk封装 ## 更新记录 @@ -16,8 +16,9 @@ composer require oakhope/aliyun-sms ### 使用 ```php -use Oakhope\AliyunSMS; +$aliyunSms = new \Oakhope\AliyunSMS('accessId', 'accessKey', 'endPoint', 'topicName', 'signName'); +$aliyunSms->sendOne('templateCode', 'phone', ['paramA' => 'valueA', 'paramB' => 'valueB']); ``` ## License diff --git a/composer.json b/composer.json index 8252ef8..1566ea1 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "oakhope/aliyun-sms", "type": "library", - "description": "阿里云短信发送", + "description": "阿里云短信发送sdk封装", "keywords": ["AliyunSMS", "aliyun", "SMS"], "homepage": "https://github.com/oakhope/aliyun-sms", "license": "MIT",