PHP code example of djunehor / laravel-bible

1. Go to this page and download the library: Download djunehor/laravel-bible library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

djunehor / laravel-bible example snippets


'providers' => [
    // ...
    Djunehor\Logos\BibleServiceProvider::class,
];

// Register Service Providers
    // ...
    $app->register(Djunehor\Logos\BibleServiceProvider::class);
];

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

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