2017 © Pedro Peláez
 

library sms

A simple abstract SMS wrapper with support for templates

image

mentalist/sms

A simple abstract SMS wrapper with support for templates

  • Wednesday, February 7, 2018
  • by ment4list
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SMS

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

A simple abstract SMS wrapper with support for templates., (*2)

Structure

src/
tests/
vendor/

Install

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();

Change log

Please see CHANGELOG for more information on what has changed recently., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*7)

Security

If you discover any security related issues, please email tooone777@gmail.com instead of using the issue tracker., (*8)

Credits

Special thanks to The League of Extraordinary Packages for the inspiration and excellent starting point., (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

07/02 2018

dev-master

9999999-dev https://github.com/Mentalist/SMS

A simple abstract SMS wrapper with support for templates

  Sources   Download

MIT

The Requires

 

The Development Requires

sms mentalist