chrisbrosnan / biblephp
PHP wrapper for the Free Use Bible API
v1.0.0
2026-06-24 10:48 UTC
Requires
- php: ^8.3
- guzzlehttp/guzzle: ^7.0
- illuminate/support: ^12.0 || ^13.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^10.0
- phpunit/phpunit: ^12.0
README
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.