Download the PHP package prevailexcel/laravel-bible without Composer
On this page you can find all versions of the php package prevailexcel/laravel-bible. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download prevailexcel/laravel-bible
More information about prevailexcel/laravel-bible
Files in prevailexcel/laravel-bible
Package laravel-bible
Short Description A Laravel Package for nearly 2500 Bible versions available across over 1600 languages, powered by API.Bible.
License MIT
Informations about the package laravel-bible
laravel-bible
A Laravel Package for nearly 2500 Bible versions available across over 1600 languages, powered by API.Bible.
Installation
PHP 5.4+ or HHVM 3.3+, and Composer are required.
To get the latest version of Laravel Bible, simply require it
Or add the following line to the require block of your composer.json
file.
You'll then need to run composer install
or composer update
to download it and have the autoloader updated.
Once Laravel Bible is installed, you need to register the service provider. Open up config/app.php
and add the following to the providers
key.
If you use Laravel >= 5.5 you can skip this step and go to
configuration
PrevailExcel\Bible\BibleServiceProvider::class
Also, register the Facade like so:
Configuration
You can publish the configuration file using this command:
A configuration-file named bible.php
with some sensible defaults will be placed in your config
directory:
Usage
Open your .env
file and add your api key, and the default version you want to use like so:
You have to register or login to your API.Bible account and get your app api key.
The default version must be set in your
config/bible.php
first. If you are using a hosting service like heroku, ensure to add the above details to your configuration variables.*
You can now call it the bible()
helper function or the Bible::method()
facade.
Some other fluent methods this package provides are listed here.
Todo
- Add Comprehensive Tests
- Add support for Audio bibles
- Add Bible Sections
Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
How can I thank you?
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!
Don't forget to follow me on twitter! Also check out my page on medium to catch articles and tutorials on Laravel follow me on medium!
Thanks! Chimeremeze Prevail Ejimadu.
License
The MIT License (MIT). Please see License File for more information.