Bloby / laravel-vitelity by Bloby

A simple Laravel interface for interacting with the Vitelity API.
16
0
1
Package Data
Maintainer Username: Bloby
Package Create Date: 2017-08-02
Package Last Update: 2017-08-03
Language: PHP
License: MIT
Last Refreshed: 2024-04-26 03:10:07
Package Statistics
Total Downloads: 16
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

laravel-vitelity

NOTE: This package is no longer in active development. Feel free to fork and extend it as needed.

A simple Laravel interface for interacting with the Vitelity API.

Installation

To install the package, simply add the following to your Laravel installation's composer.json file:

"require": {
	"laravel/framework": "5.*",
	"blob/laravel-vitelity": "dev-master"
},

Run composer update to pull in the files.

Then, add the following Service Provider to your providers array in your config/app.php file:

'providers' => [
    ...
    Vitelity\Providers\AddOnsServiceProvider::class,
    Vitelity\Providers\BillingServiceProvider::class,
    Vitelity\Providers\DIDInventoryServiceProvider::class,
    Vitelity\Providers\DIDOrderingServiceProvider::class,
    Vitelity\Providers\E911ServiceProvider::class,
    Vitelity\Providers\FaxServiceProvider::class,
    Vitelity\Providers\LNPServiceProvider::class,
    Vitelity\Providers\PlacingCallServiceProvider::class,
    Vitelity\Providers\RoutingAndNetworkServiceProvider::class,
    Vitelity\Providers\SMSServiceProvider::class,
    Vitelity\Providers\TelecomFunctionsServiceProvider::class,
];

From the command-line run: php artisan vendor:publish

Configuration

Open config/vitelity.php and configure the api endpoint and credentials:

return [
    // API URL
    'url'       =>	'http://api.vitelity.net/api.php',

    // API LOGIN
    'login'     =>	'admin_user',

    // API PASSWORD
    'password'  =>	'password123',
];

Usage

$DIDs = VitelitySMS::smsdids();