PHP code example of modularavel / larapix

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

    

modularavel / larapix example snippets


// config for Modularavel/Larapix
return [
    'valor' => env('LARAPIX_VALOR', 100), // (INTEIRO) SEM PONTOS NEM VÍRGULAS
    'chave_pix' => env('LARAPIX_CHAVE_PIX', '05542201300'), // CPF, E-MAIL, CNJP, TELEFONE OU ALEATÓRIA
    'nome_do_titular' => env('LARAPIX_NOME_DO_TITULAR', 'Casimiro Rocha'), // NOME COMPLETO DO TITULAR DA CHAVE PIX
    'cidadeDoTitularDaConta_do_titular' => env('LARAPIX_CIDADE_DO_TITULAR', 'SAO LUIS'), // SEM CARACTERES ESPECIAIS!
];
bash
php artisan vendor:publish --tag="larapix-config"
bash
php artisan vendor:publish --tag="larapix-views"