PHP code example of benjamindoe / bible-gateway
1. Go to this page and download the library: Download benjamindoe/bible-gateway 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/ */
benjamindoe / bible-gateway example snippets
$bible = new BibleGateway('NIV') // Version optional. Default is ESV
$bible->reference = 'John 3:16' // Starts the search
echo $bible->text // Echos the verse text