PHP code example of chrisbrosnan / biblephp
1. Go to this page and download the library: Download chrisbrosnan/biblephp 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/ */
chrisbrosnan / biblephp example snippets
use ChrisBrosnan\BiblePhp\BibleClient;
$translations = BibleClient::getAvailableTranslations();
// Params: translation
$books = BibleClient::getBooks('eng_kja');
$commentaries = BibleClient::getCommentaries();
// Params: commentary, book, chapter
$commentary_chapter = BibleClient::getCommentaryChapter('adam-clarke', 'GEN', 1);
// Params: commentary
$commentary_profiles = BibleClient::getCommentaryProfiles('adam-clarke');
$datasets = BibleClient::getDatasets();
// Params: dataset
$books_in_dataset = BibleClient::getBooksInDataset('open-cross-ref');
// Params: dataset, book, chapter
$chapter_in_dataset = BibleClient::getChapterInDataset('open-cross-ref', 'GEN' 1);
// Params: translation, book, chapter
$chapter = BibleClient::getChapter('kjv', 'LEV', 3);
// Params: translation, book, chapter, verse
$verse = BibleClient::getVerse('eng_kjv', 'GEN', 1, 1);
// Params: chapter
$chapter_content = BibleClient::renderChapterContent($chapter);
// Params: verse
$verse_render = BibleClient::renderVerseContent($verse);