PHP code example of floor12 / yii2-notification

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

    

floor12 / yii2-notification example snippets


use floor12\notification\NotificationAsset;
use yii\web\AssetBundle;

class AppAsset extends AssetBundle
{
    ...
    public $depends = [
        NotificationAsset::class
    ];
}

use floor12\notification\Notification;

Notification::info('The form is loading...');
Notification::error('Pleas fill all