Bible Gateway Unofficial API
Unofficial Bible Gateway PHP API, (*1)
Install
via composer
composer require benjamindoe/bible-gateway, (*2)
using just the class file
Copy the src/BibleGateway.class.php into your project and include it., (*3)
Example Usage
$bible = new BibleGateway('NIV') // Version optional. Default is ESV
$bible->reference = 'John 3:16' // Starts the search
echo $bible->text // Echos the verse text
The above will output, (*4)
16 For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
, (*5)
The API uses the same classes that the Bible Gateway website uses, (*6)
<span class="chapternum"></span> // Chapter number
<sup class="versenum"></sup> // Verse number
<span class="woj"></span> // Word of Jesus, can be used for red text