PHP code example of suxiaolin / notify

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

    

suxiaolin / notify example snippets


'notifier' => [
	'class' => 'suxiaolin\notify\Notifier',
]

Notifier::instance()->flash('Welcome back!', 'success');

 if (Notifier::instance()->ready()): 

Notifier::instance()->flash('Welcome back!', 'success', [
    'timer' => 3000,
    'text' => 'It\'s really great to see you again',
]);
javascript
 if (Notifier::instance()->ready()):