LaravelPackages.net
Acme Inc.
Toggle sidebar
rootxs/sudobible-laravel

Laravel Service Provider for SudoBible.

26
0
0.0.3
About rootxs/sudobible-laravel

rootxs/sudobible-laravel is a Laravel package for laravel service provider for sudobible.. It currently has 0 GitHub stars and 26 downloads on Packagist (latest version 0.0.3). Install it with composer require rootxs/sudobible-laravel. Discover more Laravel packages by rootxs or browse all Laravel packages to compare alternatives.

Last updated

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);
Comments