PHP code example of breadtf / johnlib

1. Go to this page and download the library: Download breadtf/johnlib 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/ */

    

breadtf / johnlib example snippets


// Create the psychic link to john
ib();

// Summon a new johnvertisment from the all-powerful john himself
echo $john->generateJohn("example.com");

$johnData = $john->getJohn("example.com");

echo "<p> John URL is: " . $johnData["url"] . "</p>";
echo "<img src='" . $johnData["image"] . "' alt='johnvertisment'>";