PHP code example of messer / pix

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

    

messer / pix example snippets


use Messer\Pix\Pix;

$pix = new Pix();

$data = [
    'name' => 'Gustavo Ramad Messer',
    'city' => 'Santos',
    'key' => 'gustavoramadmesser',
    'value' => '77.77',
    'description' => 'Pix String Test',
    'output' => 'string', // optional (default: string)
    'destiny' => '', // optional (public path)
];

$pixResponse = $pix->generate($data);

use Messer\Pix\Pix;

$pix = new Pix();

$data = [
    'name' => 'Gustavo Ramad Messer', // lue' => '77.77', // optional
    'description' => 'Pix Image Test', // optional
    'output' => 'image', // optional (default: string)
    'destiny' => '', // optional (public path)
];

$pixResponse = $pix->generate($data);