PHP code example of escapework / msg

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

    

escapework / msg example snippets


use EscapeWork\Msg\Msg;

Msg::setInfo('Info.');
Msg::setMessage('O registro foi inserido com sucesso!');
Msg::setWarning('Warning!!');
Msg::setError('Error!!!');

use EscapeWork\Msg\Msg;

Msg::getErrors();

use EscapeWork\Msg\Msg;

Msg::getAll();

        'EscapeWork\Msg\Laravel\MsgServiceProvider'