Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 93 | All time: 9,900 This week: 46 |
Version | License | PHP version | Categories | |||
laravel-bible 1.0.0 | Custom (specified... | 5 | PHP 5, Content management |
Laravel Bible helps you fetch from the Holy Bible
You can install the package via composer:
composer require djunehor/laravel-bible
The package will automatically register itself, so you can start using it immediately.
In Laravel version 5.4 and older, you have to add the service provider in config/app.php
file manually:
'providers' => [
// ...
Djunehor\Logos\BibleServiceProvider::class,
];
After installing the package, you will have to register it in bootstrap/app.php
file manually:
// Register Service Providers
// ...
$app->register(Djunehor\Logos\BibleServiceProvider::class);
];
Run:
php artisan vendor:publish --tag=laravel-bible
This will move the migration file, seeder file and config file to your app. You can change the entries table name in config/laravel-grammar.php
use Djunehor\Logos\Bible;`
$bible = new Bible();
$bible->book('John');
$john = $bible->getBook();
$bible->book('Matthew');
$bible->chapter(3);
$verses = $bible->getChapter();
$bible->book('Mark');
$bible->chapter(3);
$bible->verse(12);
$verse = $bible->getVerse();
// get Genesis 22:6
$verse = $bible->get('Genesis 22:6');
//Bible Class accepts 2 parameters: $lang and $version
$lang = 'en';
$bible = new Bible('en'); //use English version
$bible = new Bible('en', 'kjv'); // use English KJV bible
In order to use the Bible facade:
- First add 'Bible' => Djunehor\Logos\Facades\BibleFacade::class,
to aliases in config/app.php
- Then use like Bible::get('John 3:16');
The package ships with a bible()
method
bible('John 3:16');
$bible = new Bible(); // lang is set to "en", and version is set to "kjv" by default;
$bible->lang('yo'); // Set language as Yoruba
$bible->version('amp'); // Set version to Amplified Version
|Language|Code|Versions| |:--------- | :-----------------: | :------: | |English|en|kjv|
Simply follow the structure of the bibles/en
folder
Files (82) |
File | Role | Description | ||
---|---|---|---|---|
.circleci (1 file) | ||||
bibles (1 directory) | ||||
src (2 files, 2 directories) | ||||
tests (3 files) | ||||
.scrutinizer.yml | Data | Auxiliary data | ||
.styleci.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (82) | / | bibles | / | en | / | kjv |
File | Role | Description |
---|---|---|
1Chronicles.json | Data | Auxiliary data |
1Corinthians.json | Data | Auxiliary data |
1John.json | Data | Auxiliary data |
1Kings.json | Data | Auxiliary data |
1Peter.json | Data | Auxiliary data |
1Samuel.json | Data | Auxiliary data |
1Thessalonians.json | Data | Auxiliary data |
1Timothy.json | Data | Auxiliary data |
2Chronicles.json | Data | Auxiliary data |
2Corinthians.json | Data | Auxiliary data |
2John.json | Data | Auxiliary data |
2Kings.json | Data | Auxiliary data |
2Peter.json | Data | Auxiliary data |
2Samuel.json | Data | Auxiliary data |
2Thessalonians.json | Data | Auxiliary data |
2Timothy.json | Data | Auxiliary data |
3John.json | Data | Auxiliary data |
Acts.json | Data | Auxiliary data |
Amos.json | Data | Auxiliary data |
Colossians.json | Data | Auxiliary data |
Daniel.json | Data | Auxiliary data |
Deuteronomy.json | Data | Auxiliary data |
Ecclesiastes.json | Data | Auxiliary data |
Ephesians.json | Data | Auxiliary data |
Esther.json | Data | Auxiliary data |
Exodus.json | Data | Auxiliary data |
Ezekiel.json | Data | Auxiliary data |
Ezra.json | Data | Auxiliary data |
Galatians.json | Data | Auxiliary data |
Genesis.json | Data | Auxiliary data |
Habakkuk.json | Data | Auxiliary data |
Haggai.json | Data | Auxiliary data |
Hebrews.json | Data | Auxiliary data |
Hosea.json | Data | Auxiliary data |
Isaiah.json | Data | Auxiliary data |
James.json | Data | Auxiliary data |
Jeremiah.json | Data | Auxiliary data |
Job.json | Data | Auxiliary data |
Joel.json | Data | Auxiliary data |
John.json | Data | Auxiliary data |
Jonah.json | Data | Auxiliary data |
Joshua.json | Data | Auxiliary data |
Jude.json | Data | Auxiliary data |
Judges.json | Data | Auxiliary data |
Lamentations.json | Data | Auxiliary data |
Leviticus.json | Data | Auxiliary data |
LICENSE | Lic. | License text |
Luke.json | Data | Auxiliary data |
Malachi.json | Data | Auxiliary data |
Mark.json | Data | Auxiliary data |
Matthew.json | Data | Auxiliary data |
Micah.json | Data | Auxiliary data |
Nahum.json | Data | Auxiliary data |
Nehemiah.json | Data | Auxiliary data |
Numbers.json | Data | Auxiliary data |
Obadiah.json | Data | Auxiliary data |
Philemon.json | Data | Auxiliary data |
Philippians.json | Data | Auxiliary data |
Proverbs.json | Data | Auxiliary data |
Psalms.json | Data | Auxiliary data |
Revelation.json | Data | Auxiliary data |
Romans.json | Data | Auxiliary data |
Ruth.json | Data | Auxiliary data |
SongofSolomon.json | Data | Auxiliary data |
Titus.json | Data | Auxiliary data |
Zechariah.json | Data | Auxiliary data |
Zephaniah.json | Data | Auxiliary data |
Files (82) | / | src |
File | Role | Description | ||
---|---|---|---|---|
Facades (1 file) | ||||
Helpers (1 file) | ||||
Bible.php | Class | Class source | ||
BibleServiceProvider.php | Class | Class source |
Files (82) | / | tests |
File | Role | Description |
---|---|---|
BibleServiceProviderTest.php | Class | Class source |
BibleTest.php | Class | Class source |
TestCase.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.