rootxs/sudobible-laravel

Laravel Service Provider for SudoBible.
26
Install
composer require rootxs/sudobible-laravel
Latest Version:0.0.3
PHP:>=5.4
License:MIT
Last Updated:Jul 30, 2015
Links: GitHub  ·  Packagist
Maintainer: rootxs

SudoBible-Laravel

Laravel Service Provider for SudoBible.

Installation & Setup

Install the SudoBible Service Provider via Composer by adding the rootxs/sudobible-laravel package to the require object in your project's composer.json.

{
	...
	"require": {
		"rootxs/sudobible-laravel": "dev-master"
	},
	...
}

NOTE: This package automatically requires rootxs/sudobible, so you do NOT have to add it separately to your composer.json.

Then run composer update.

Next, add the SudoBible Service Provider to the providers array in config/app.php.

    'providers' => array(
        ...
        'RootXS\SudoBibleServiceProvider',
    )

Add the SudoBible facade to the aliases array in config/app.php.

    'aliases' => array(
        ...
        'SudoBible' => 'RootXS\SudoBibleFacade',
    )

Configuration

The following environment variables are used to configure SudoBible:

SUDOBIBLE_DB_HOST
SUDOBIBLE_DB_USER
SUDOBIBLE_DB_PASS
SUDOBIBLE_DB_NAME
SUDOBIBLE_TRANSLATION // optional

Optional

To customize the configuration options, publish the configuration file using Artisan:

php artisan vendor:publish

Update your settings in the generated app/config/sudobible.php configuration file.

Usage

SudoBible::verse('John', 3, 16);