PHP code example of fedcomp / brainloller

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

    

fedcomp / brainloller example snippets


 Fedcomp\BrainLoller;
$brainloller = new BrainLoller();

$brainloller->init(__DIR__.'/tests/images/hello-world.png');
// OR
$brainloller->init(fopen(__DIR__.'/tests/images/hello-world.png', 'r'));
echo $brainloller->getCode();