dev-master
9999999-dev https://github.com/Mentalist/SMSA simple abstract SMS wrapper with support for templates
MIT
The Requires
- php ~5.6
- guzzlehttp/guzzle ~6.0
The Development Requires
sms mentalist
A simple abstract SMS wrapper with support for templates
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
A simple abstract SMS wrapper with support for templates., (*2)
src/ tests/ vendor/
Via Composer, (*3)
``` bash $ composer require mentalist/sms, (*4)
## Usage ``` php // Create a recipient $recipient = '555-555-5555'; // Use default Provider $SMS = new \Mentalist\SMS\SMS(); // Add a recipient $SMS->addRecipient($recipient); // Set the message $SMS->setMessage('Hello, League!'); // Send it! $SMS->send(); // Use Nexmo Provider $provider = new \Mentalist\SMS\Provider\NexmoProvider('NEXMO_API_KEY', 'NEXMO_API_SECRET'); $SMS = new \Mentalist\SMS\SMS($provider); // Add multiple recipients $SMS->addRecipients([$recipient, '555-000-5555']); // Set the message $SMS->setMessage('Sent using Nexmo!'); // Send it! $SMS->send(); // Clear recipients $recipients = $SMS->clearRecipients(); // Get credits $credits = $SMS->getCredits(); // or $credits = $provider->getCredits();
Please see CHANGELOG for more information on what has changed recently., (*5)
bash
$ composer test
, (*6)
Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*7)
If you discover any security related issues, please email tooone777@gmail.com instead of using the issue tracker., (*8)
Special thanks to The League of Extraordinary Packages for the inspiration and excellent starting point., (*9)
The MIT License (MIT). Please see License File for more information., (*10)
A simple abstract SMS wrapper with support for templates
MIT
sms mentalist