Download the PHP package kreateyou/vumasms without Composer
On this page you can find all versions of the php package kreateyou/vumasms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package vumasms
VUMASMS Client Library for PHP
This library requires a minimum PHP version of 5.6
This is the PHP client library for use VumaSMS's API. To use this, you'll need a vumasms account. Sign up for free at vumasms.com. This is currently a beta release, see contributing for more information.
- Installation
- Obtaining Api Keys
- Usage
- Examples
- VumaSMS Laravel
- Contributing
Installation
To use the client library you'll need to have created a VUMASMS account.
To install the PHP client library using Composer
Obtaining Api Keys
- Loggin to your VumaSMS account.
- Click on Setting on the left side menu
- Click on Generate API credentials button
- Save the Key and Secret on you app NOTE: vumaSMS will not store the api key or credentials it will generate new key every time please save the key for later use
Usage
If you're using composer, make sure the autoloader is included in your project's bootstrap file:
Create a client with your API key and secret:
Examples
Sending A Message
To use VumaSMS's SMS API to send an SMS message, call the $client->send()
method.
The API can be called directly, using a simple array of parameters, the keys are as follows.
The API response json data can be is as follows.
Laravel
To use the components in laravel 5.x Add the VumaSMS provider in your Providers
Publish the Service provider as follow
on your config folder locate the vumasms.php config change the key & secret configuration if your are usine .env configuration add your keys and secret in your .env file as follows
To send SMS in laravel is as follows
Contributing
To contribute to the library, docs, or examples, [create an issue][issues] or a pull request. Please only raise issues about features marked as working in the API coverage as the rest of the code is being updated.
License
This library is released under the MIT License