larablocks / emailsms
Send free sms messages from an email account
Requires
- php: >=5.4
- illuminate/log: 5.5.*
- illuminate/mail: 5.5.*
Requires (Dev)
- php: >=5.4.0
- illuminate/console: ~5.0
- illuminate/support: ~5.0
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-09 18:32:44 UTC
README
EmailSMS
EmailSMS is a simple package that facilitates sending free text messages from email accounts. Simply pass an object that binds to the interface (EmailSMSInterface) to send a text message to the phone number specified in the object
Installation
Add larablocks/emailsms
as a requirement to composer.json
:
{ "require": { "larablocks/emailsms": "5.0.*" } }
Note: All Larablocks packages will have versions in line with the laravel framework.
Update your packages with composer update
or install with composer install
.
Laravel Integration
To wire this up in your Laravel project you need to add the service provider. Open app.php
, and add a new item to the providers array.
'Larablocks\EmailSMS\EmailSMSServiceProvider',
Then, add a Facade for more convenient usage. In your app.php
config file add the following line to the aliases
array.
Note: The EmailSMS facade will load automatically, so you don't have to add it to the app.php
file but you may still want to keep record of the alias.
'EmailSMS' => 'Larablocks\EmailSMS\EmailSMS',
Usage as a Facade to send a text message
####Send Message:
EmailSMS::send($objectThatImplements_EmailSMSInterface);
License
EmailSMS is open-sourced software licensed under the MIT license