larablocks/emailsms

Send free sms messages from an email account

5.5.0 2020-05-04 19:10 UTC

This package is not auto-updated.

Last update: 2024-12-21 19:10:55 UTC


README

Build Status

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