PHP code example of z38 / metzli
1. Go to this page and download the library: Download z38/metzli 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/ */
z38 / metzli example snippets
use Metzli\Encoder\Encoder;
use Metzli\Renderer\PngRenderer;
// ... some awesome code here ...
$code = Encoder::encode('Hello World!');
$renderer = new PngRenderer();
header('Content-Type: image/png');
echo $renderer->render($code);