PHP code example of monolyth / booby

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

    

monolyth / booby example snippets




Monolyth\Booby\Flash::me('This is my awesome message.');



foreach (Monolyth\Booby\Flash::each() as $msg) {
    echo $msg;
}



Monolyth\Booby\Flash::me('This is a warning', ['type' => 'warning']);

$msg = Monolyth\Booby\Flash::each();
echo $msg->type; // "warning"