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
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.
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',####Send Message:
EmailSMS::send($objectThatImplements_EmailSMSInterface);EmailSMS is open-sourced software licensed under the MIT license