rutgerkirkels / smsclient
使用此短信客户端通过各种提供商发送文本消息,例如VoipCheap
1.0.0-beta.1
2016-10-23 21:52 UTC
Requires (Dev)
- phpunit/phpunit: 4.0.*
This package is not auto-updated.
Last update: 2024-09-28 19:52:45 UTC
README
由Rutger Kirkels编写
安装
使用Composer安装库
$ composer require rutgerkirkels/smsclient
使用方法
<?php use RutgerKirkels\SMSclient\Client; // Initialize the client to send a message through VoipCheap $client = new Client('VoipCheap'); // Add your credentials $client->setCredentials(array('username' => '<username>', 'password' => '<password>')); // Set the recipients telephone number in international format $client->setRecipient('0031641443860'); // Set the text you want to send $client->setMessage('zomaar een tekst'); $client->send(); ?>