PHP code example of fabiojr933 / php-flash-messages

1. Go to this page and download the library: Download fabiojr933/php-flash-messages 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/ */

    

fabiojr933 / php-flash-messages example snippets


composer 



jr933\PhpFlashMessages\Messages;
$flash = new Messages();

// Criar mensagem para teste
$flash->setFlash('success', 'Operação realizada com sucesso!');
$flash->setFlash('error', 'Ocorreu um erro inesperado!');