rootxs / sudobible-laravel
Laravel Service Provider for SudoBible.
Requires
- php: >=5.4
- rootxs/sudobible: 0.*
Requires (Dev)
- laravel/framework: ~5.1
This package is not auto-updated.
Last update: 2024-11-09 18:02:09 UTC
README
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);