Download the PHP package gotrex/laravel-voipnow without Composer
On this page you can find all versions of the php package gotrex/laravel-voipnow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gotrex/laravel-voipnow
More information about gotrex/laravel-voipnow
Files in gotrex/laravel-voipnow
Package laravel-voipnow
Short Description A Laravel wrapper for the VoipNow API
License MIT
Homepage https://github.com/gotrex/laravel-voipnow
Informations about the package laravel-voipnow
Laravel VoipNow
A Laravel 5 wrapper for the VoipNow SystemAPI.
Note: The token credential information is stored in a JSON file for application wide usage. If you prefer multi user usage please refer to the Multiuser Support section of the readme.
Installation
You can install the package via composer:
From the command-line run:
Add the following keys to your .env file.
The following key is optional
Usage
You can call a VoipNow SystemAPI method directly by using the facace (e.g. VoipNow::{VOIPNOWFUNCTION}
). For a full reference of all the available functions refer to the VoipNow SystemAPI documenatation.
Examples
Retrieve a list of all the service providers
Retrieve the organization account details
If you do not use the Facade, you can call it with the app() helper.
Multiuser support
Out of the box this package stores the token information in a JSON file. This means every request uses the same token credentials. If you would like to give your users the opportunity to make individual requests you can do so by setting the following parameter inside your .env file:
Currently the package does not provide a migration. Add the following definition to the user migration - or create the fields directly in the database table.
Add the fields to the $fillable property of the User model.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
Support
Please open an issue in github
License
The MIT License (MIT). Please see License File for more information.