PHP code example of gudezi / yii2-notifications-widget

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

    

gudezi / yii2-notifications-widget example snippets



    // Example of data.
    $data = [
        ['url' => '', 'user' => 'Equipo de soporte','image' => '','time' => '5 min','message' => 'Make Deploy?'],
        ['url' => '', 'user' => 'Equipo de Desarrollo','image' => '','time' => '6 min','message' => 'Make Deploy?']
    ];
    <?= gudezi\notifications\NotificationsWidget::widget(
        [
            'options' => ['class' => 'sidebar-menu'],
            'items' => $itemsMessage,
            'directoryAsset' =>$directoryAsset,
            'type' => gudezi\notifications\NotificationsWidget::TYPE_MESSAGE,
        ]
    ) 

php composer.phar