LaravelPackages.net
Acme Inc.
Toggle sidebar
chrisbrosnan/biblephp

PHP wrapper for the Free Use Bible API

0
0
v1.0.0
About chrisbrosnan/biblephp

chrisbrosnan/biblephp is a Laravel package for php wrapper for the free use bible api. It currently has 0 GitHub stars and 0 downloads on Packagist (latest version v1.0.0). Install it with composer require chrisbrosnan/biblephp. Discover more Laravel packages by chrisbrosnan or browse all Laravel packages to compare alternatives.

Last updated

BiblePHP

Latest Stable Version Total Downloads

Laravel/PHP wrapper for the Free Use Bible API to easily access it within your PHP application.

Installation

composer require chrisbrosnan/biblephp

Usage

use ChrisBrosnan\BiblePhp\BibleClient;

Available Methods

  • getAvailableTranslations()
  • getBooks()
  • getChapter()
  • getCommentaries()
  • getCommentaryChapter()
  • getCommentaryProfiles()
  • getDatasets()
  • getBooksInDataset()
  • getChapterInDataset()
  • getVerse()
  • renderVerseContent()
  • renderChapterContent()

Example of use for each method

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

API Documentation

This package is a PHP wrapper for the Free Use Bible API. This API is completely free and open to use, and the documentation can give a good overview for how to access it either using this wrapper or otherwise.

License

License

Comments