PHP code example of awema-pl / module-system-notify

1. Go to this page and download the library: Download awema-pl/module-system-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/ */

    

awema-pl / module-system-notify example snippets


@notify(['name' => 'container', 'stack' => false, 'config' => "{theme: 'inline', timeout: 0}"])

// notify in different styles to specific container
Notify::info('title', 'message')->to('container');
Notify::error('title', 'message')->to('container');
Notify::warning('title', 'message')->to('container');
Notify::success('title', 'message')->to('container');

// add button to notification
Notify::notify('title', 'message', 'success')
    ->withButton([
        'text' => 'Install now', // button cta text, 

alert('title', 'message', 'info')->to('container');

alert('title', '<a href="/path">message</a>', 'info')->to('container');