portalium/yii2-notification

Module notification for Portalium

dev-main 2024-09-27 11:00 UTC

This package is auto-updated.

Last update: 2024-10-17 19:58:03 UTC


README

Table of Contents

Introduction

This module created for sending and receiving notifications to specific users based on permissions that is given to related user.

Requirements

PHP 7.3.31 or higher

How does the Notification Module work?

Creating, Updating, Deleting and Viewing the notification is done base on the permissions that is given to users.

Read

For reading or viewing your notifications you need to check the bell icon on the right corner of your login page. If you have any new notification, a number which states the number of notifications will be appeared on top of bell icon.

bell_icon


By clicking any of them you will be redirected to that notification.

notification_dropdown


Create

For creating a notification you should have the related permission. If you have the permission you can start to create a notification by clicking on the viewAll in the dropdown list of bell icon and then click on the plus(+) icon that is located on the corner side of your page. The first field shows to whom the notification will be sent. After filling required fields, you can click on the save button.

create

Update

For updating a notification you need to click on the pencil icon on the right side your notification as follows,

update_pen_icon

Delete

For deleting a notification, you should click on the trash icon which is located on the right side of your related notification row.

delete_trash


How to use or develop

You should add the following blocks of code into your composer.json file of your Portalium module.

to repositories part of your composer.json
{ "type": "git", "url": "https://github.com/portalium/yii2-notification.git" }

to require part of your composer.json
"portalium/yii2-notification": "dev-develop",

and in web\config\main.php path you should add the following block of code in module part
{ "type": "git", "url": "https://github.com/portalium/yii2-notification.git" }

and finally, you should run composer update command in the terminal of your php container in Docker.