PHP code example of dominus77 / yii2-noty

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

    

dominus77 / yii2-noty example snippets



// ...
Yii::$app->session->setFlash(\dominus77\noty\NotyWidget::TYPE_SUCCESS, 'Hello World!');
// ...



// ...
Yii::$app->session->setFlash('key1', [
    \dominus77\noty\NotyWidget::TYPE_SUCCESS,
    'Hello World!', 
    // Type options
    [
        'timeout' => 3000
    ],
    // Options
    [
        'progressBar' => true,
        'layout' => \dominus77\noty\NotyWidget::LAYOUT_TOP_RIGHT,
        'theme' => \dominus77\noty\NotyWidget::THEME_MINT
    ]
]);
// ...


use dominus77\noty\NotyWidget;


use dominus77\noty\NotyWidget;

php composer.phar