Download the PHP package js0nvr/laravel-textmagic without Composer
On this page you can find all versions of the php package js0nvr/laravel-textmagic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download js0nvr/laravel-textmagic
More information about js0nvr/laravel-textmagic
Files in js0nvr/laravel-textmagic
Package laravel-textmagic
Short Description Laravel 5 integration of the Textmagic SMS API
License MIT
Informations about the package laravel-textmagic
Laravel Textmagic
This is a Laravel 5 wrapper for the Textmagic SMS API v2 PHP
What is Textmagic?
TextMagic SMS API is a platform for building your own messaging app using our messaging infrastructure. It allows you to send and receive SMS text messages, query information about inbound and outbound messages, manage contacts, create templates (i.e. message formats and static texts) and schedule recurrent SMS messages as well as process bulk SMS messages.
https://www.textmagic.com/docs/api/ https://rest.textmagic.com/api/v2/doc
Basic Installation
Add the service provider to the providers array in :
You can optionally use the facade for shorter code. Add the facade to the alias array in :
Configuration
After adding the API key to your account, you'll need to provide the username and token. In Laravel you can publish the configuration file with artisan
.
Where's the file? Laravel 5 will publish the config file to
/config/textmagic.php
.
Required config values
You'll need to update the username
and token
values in the config file with your username and token.
Code Example
Todo
- Add more detailed logging
- Add ability to attach callback if request fails
- Add unit tests
License
This plugin is released under the permissive MIT license. Your contributions are always welcome.