PHP Classes
elePHPant
Icontem

Laravel PHP Bible: Retrieve content from the Holy Bible

Recommend this page to a friend!
  Info   View files Documentation   View files View files (82)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-12-03 (2 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 24 This week: 24All time: 9,750 This week: 7Up
Version License PHP version Categories
laravel-bible 1.0Custom (specified...5PHP 5, Content management
Description Author

This package can be used to retrieve content from the Holy Bible.

It provides the content of the Holy Bible that can be returned in pieces divided by books, chapters and verses.

The package contains the whole content of the Holy Bible in English. It can support other languages if the respective files for those languages are provided within the package in JSON format.

  Performance   Level  
Name: Zacchaeus Bolaji <contact>
Classes: 6 packages by
Country: Nigeria Nigeria
Innovation award
Innovation award
Nominee: 1x

 

Details

Laravel Bible

CircleCI Latest Stable Version Total Downloads License Scrutinizer Code Quality Code Intelligence Status Maintainability StyleCI Code Coverage

Laravel Bible helps you fetch from the Holy Bible

Installation

Step 1

You can install the package via composer:

composer require djunehor/laravel-bible

Laravel 5.5 and above

The package will automatically register itself, so you can start using it immediately.

Laravel 5.4 and older

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,
];

Lumen

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

Step 2 - Publishing files

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

Usage

use Djunehor\Logos\Bible;`

$bible = new Bible();

Get the Book of John

$bible->book('John');
$john = $bible->getBook();

Get All Verses in Matthew Chapter 3

$bible->book('Matthew');
$bible->chapter(3);
$verses = $bible->getChapter();

Get the Book of Mark, Chapter 3, Verse 12

$bible->book('Mark');
$bible->chapter(3);
$bible->verse(12);
$verse = $bible->getVerse();

Using shortcut

// get Genesis 22:6
$verse = $bible->get('Genesis 22:6');

Options

//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

Using Facade

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

Using Helper

The package ships with a bible() method

bible('John 3:16');

Dynamically setting language and/or version

$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

Currently Supported Languages and Versions

|Language|Code|Versions| |:--------- | :-----------------: | :------: | |English|en|kjv|

Add new language and bible version

Simply follow the structure of the bibles/en folder

Contributing

  • Fork this project
  • Clone to your repo
  • Make your changes and run tests composer test
  • Push and create a pull request

Acknowledgement

  • The KJV English bible JSON file was sourced from here
  Files folder image Files  
File Role Description
Files folder image.circleci (1 file)
Files folder imagebibles (1 directory)
Files folder imagesrc (2 files, 2 directories)
Files folder imagetests (3 files)
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .circleci  
File Role Description
  Accessible without login Plain text file config.yml Data Auxiliary data

  Files folder image Files  /  bibles  
File Role Description
Files folder imageen (1 file, 1 directory)

  Files folder image Files  /  bibles  /  en  
File Role Description
Files folder imagekjv (67 files)
  Accessible without login Plain text file Books.json Data Auxiliary data

  Files folder image Files  /  bibles  /  en  /  kjv  
File Role Description
  Accessible without login Plain text file 1Chronicles.json Data Auxiliary data
  Accessible without login Plain text file 1Corinthians.json Data Auxiliary data
  Accessible without login Plain text file 1John.json Data Auxiliary data
  Accessible without login Plain text file 1Kings.json Data Auxiliary data
  Accessible without login Plain text file 1Peter.json Data Auxiliary data
  Accessible without login Plain text file 1Samuel.json Data Auxiliary data
  Accessible without login Plain text file 1Thessalonians.json Data Auxiliary data
  Accessible without login Plain text file 1Timothy.json Data Auxiliary data
  Accessible without login Plain text file 2Chronicles.json Data Auxiliary data
  Accessible without login Plain text file 2Corinthians.json Data Auxiliary data
  Accessible without login Plain text file 2John.json Data Auxiliary data
  Accessible without login Plain text file 2Kings.json Data Auxiliary data
  Accessible without login Plain text file 2Peter.json Data Auxiliary data
  Accessible without login Plain text file 2Samuel.json Data Auxiliary data
  Accessible without login Plain text file 2Thessalonians.json Data Auxiliary data
  Accessible without login Plain text file 2Timothy.json Data Auxiliary data
  Accessible without login Plain text file 3John.json Data Auxiliary data
  Accessible without login Plain text file Acts.json Data Auxiliary data
  Accessible without login Plain text file Amos.json Data Auxiliary data
  Accessible without login Plain text file Colossians.json Data Auxiliary data
  Accessible without login Plain text file Daniel.json Data Auxiliary data
  Accessible without login Plain text file Deuteronomy.json Data Auxiliary data
  Accessible without login Plain text file Ecclesiastes.json Data Auxiliary data
  Accessible without login Plain text file Ephesians.json Data Auxiliary data
  Accessible without login Plain text file Esther.json Data Auxiliary data
  Accessible without login Plain text file Exodus.json Data Auxiliary data
  Accessible without login Plain text file Ezekiel.json Data Auxiliary data
  Accessible without login Plain text file Ezra.json Data Auxiliary data
  Accessible without login Plain text file Galatians.json Data Auxiliary data
  Accessible without login Plain text file Genesis.json Data Auxiliary data
  Accessible without login Plain text file Habakkuk.json Data Auxiliary data
  Accessible without login Plain text file Haggai.json Data Auxiliary data
  Accessible without login Plain text file Hebrews.json Data Auxiliary data
  Accessible without login Plain text file Hosea.json Data Auxiliary data
  Accessible without login Plain text file Isaiah.json Data Auxiliary data
  Accessible without login Plain text file James.json Data Auxiliary data
  Accessible without login Plain text file Jeremiah.json Data Auxiliary data
  Accessible without login Plain text file Job.json Data Auxiliary data
  Accessible without login Plain text file Joel.json Data Auxiliary data
  Accessible without login Plain text file John.json Data Auxiliary data
  Accessible without login Plain text file Jonah.json Data Auxiliary data
  Accessible without login Plain text file Joshua.json Data Auxiliary data
  Accessible without login Plain text file Jude.json Data Auxiliary data
  Accessible without login Plain text file Judges.json Data Auxiliary data
  Accessible without login Plain text file Lamentations.json Data Auxiliary data
  Accessible without login Plain text file Leviticus.json Data Auxiliary data
  Accessible without login Plain text file LICENSE Lic. License text
  Accessible without login Plain text file Luke.json Data Auxiliary data
  Accessible without login Plain text file Malachi.json Data Auxiliary data
  Accessible without login Plain text file Mark.json Data Auxiliary data
  Accessible without login Plain text file Matthew.json Data Auxiliary data
  Accessible without login Plain text file Micah.json Data Auxiliary data
  Accessible without login Plain text file Nahum.json Data Auxiliary data
  Accessible without login Plain text file Nehemiah.json Data Auxiliary data
  Accessible without login Plain text file Numbers.json Data Auxiliary data
  Accessible without login Plain text file Obadiah.json Data Auxiliary data
  Accessible without login Plain text file Philemon.json Data Auxiliary data
  Accessible without login Plain text file Philippians.json Data Auxiliary data
  Accessible without login Plain text file Proverbs.json Data Auxiliary data
  Accessible without login Plain text file Psalms.json Data Auxiliary data
  Accessible without login Plain text file Revelation.json Data Auxiliary data
  Accessible without login Plain text file Romans.json Data Auxiliary data
  Accessible without login Plain text file Ruth.json Data Auxiliary data
  Accessible without login Plain text file SongofSolomon.json Data Auxiliary data
  Accessible without login Plain text file Titus.json Data Auxiliary data
  Accessible without login Plain text file Zechariah.json Data Auxiliary data
  Accessible without login Plain text file Zephaniah.json Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
Files folder imageFacades (1 file)
Files folder imageHelpers (1 file)
  Plain text file Bible.php Class Class source
  Plain text file BibleServiceProvider.php Class Class source

  Files folder image Files  /  src  /  Facades  
File Role Description
  Plain text file BibleFacade.php Class Class source

  Files folder image Files  /  src  /  Helpers  
File Role Description
  Accessible without login Plain text file helpers.php Example Example script

  Files folder image Files  /  tests  
File Role Description
  Plain text file BibleServiceProviderTest.php Class Class source
  Plain text file BibleTest.php Class Class source
  Plain text file TestCase.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:24
This week:24
All time:9,750
This week:7Up