1. Go to this page and download the library: Download chja/cfmessage 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/ */
chja / cfmessage example snippets
" "chja/cfmessage": "dev-master"
},
$di->set('Cfmessage', function() use ($di) {
$message = new \Chja\Cfmessage\CfmessageAnax();
$message->setDI($di);
return $message;
});
$app->Cfmessage->addNotice('This is an information message');
$app->Cfmessage->addError('This is an error message');
$app->Cfmessage->addSuccess('This is a success message');
$app->Cfmessage->addWarning('This is a warning message');