blob/laravel-mor

A simple Laravel interface for interacting with the mor API.

dev-master 2018-06-04 17:47 UTC

This package is not auto-updated.

Last update: 2024-05-03 05:29:22 UTC


README

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 morinc API.

Installation

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

"require": {
	"laravel/framework": "5.*",
	"blob/laravel-mor": "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' => array(
	...
	MOR\Providers\MORServiceProvider::class
);

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

Configuration

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

return [
    // API URL
    'url'		=>	'https://mor.url.com',

    // API USERNAME
    'username'	=>	'admin_user',

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

    // API PROCESSOR
    'processor' =>	'api2016.php',

    // API USERNAME
    'timezone'	=>	'UTC',
];

Usage

$DIDs = MOR::getDIDs($client_id);