Download the PHP package saleemepoch/txtnation without Composer
On this page you can find all versions of the php package saleemepoch/txtnation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package txtnation
Laravel package for txtNation Gateway
The txtNation Gateway PHP Library works with Laravel 5+. It is an extension of Marc O'Leary's txtnation/txtnation-gateway-php.
- Prerequisites
- Installation
- Configuration
- Usage
- [Free SMS] (#free-sms)
- [Premium SMS] (#premium-sms)
- Support
Prerequisites
This README assumes you are using the following PHP extensions:
- php-curl
- php-mbstring
Installation
-
Use following command to install:
-
Add the service provider to your $providers array in config/app.php file like:
- Run the following command to publish configuration:
Configuration
- After installation, you will need to add your txtNation settings. Following is the code you will find in config/txtNation.php, which you should update accordingly.
Usage
- To send a free SMS
- MT to Bill a user after opting-in
1) Make sure in config/txtNation.php you have keywords mapped to values the user is to be charged, e.g.
2) Login to your txtNation account -> APIs -> Gateway and set your responder URL, e.g. http://example.com/txtNationResponse
3) Setup a route in your routes.php:
4) Exclude this route from CSRF protection by adding the URI to the $except property of the VerifyCsrfToken middleware:
5) Setup a controller like txtNationController for this example and create a method:
The above controller method will accept the response from txtNation and if billing is set to MT it will reply back charging the user.
All versions of txtnation with dependencies
monolog/monolog Version ^1.13
guzzlehttp/guzzle Version ^6.2
shrikeh/teapot Version ^2.0
respect/validation Version ^1.0
ramsey/uuid Version ^3.3