Giter VIP home page Giter VIP logo

pimcore5-notifications's Introduction

Pimcore 5 notifications

It's simple plugin that allows to send notifications to user. Plugin adds to status bar new clickable icon, on click it opens new tab with all notifications, also it contains badge with unread notifications count.

There're two different ways of communication:

  • WebSockets - if it's possible to initialize,
  • Ajax - otherwise.

When there's new notification for user, it shows as window with possibility to close it, mark as read or open details.

Compatibility

This module is compatible with Pimcore ^5.1.0.

Requirements

This plugin requires php >= 7.0.

Installing/Getting started

First step

composer require divante-ltd/pimcore5-notifications

Second step

Open Extension tab in admin panel and install plugin. After this, installation is finished.

Usage

If you want to send some notifications to user:

<?php

use Divante\NotificationsBundle\Model\Notification;

$notification = new Notification();
$notification->setTitle('your title');
$notification->setMessage('your message');
$notification->setUser($user);
$notification->setType(Notification::TYPE_INFO); // optional
$notification->setFromUser($fromUser); // optional
$notification->setLinkedElement($linkedElement); // optional
$notification->save();

How to enable WebSockets?

Just run this command (it'll start WebSocket server):

bin/console divante:notifications:run

Supervisord is highly recommended to use (read more here).

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Standards & Code Quality

This module respects our own PHPCS and PHPMD rulesets.

About Authors

Divante-logo

We are a Software House from Europe, headquartered in Poland and employing about 150 people. Our core competencies are built around Magento, Pimcore and bespoke software projects (we love Symfony3, Node.js, Angular, React, Vue.js). We specialize in sophisticated integration projects trying to connect hardcore IT with good product design and UX.

Visit our website Divante.co for more information.

pimcore5-notifications's People

Contributors

kkirsz avatar kubaplas avatar zavodyanka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pimcore5-notifications's Issues

Non-existent service "Divante\NotificationsBundle\Installer"

After clicking "enable" in Extensions panel I get an error:

Timestamp: Tue Oct 17 2017 16:37:25 GMT+0200 (CEST)
Status: 500 | Internal Server Error
URL: /admin/extensionmanager/admin/extensions?_dc=1508251043848
Method: GET
Message: You have requested a non-existent service "Divante\NotificationsBundle\Installer".

Picmore 5.4.4 icons

Hi,
I just recently installed Pimcore 5.4.4 and added notifications.
The icons in Notifications tab were not showing (element icon, delete, icon, ...).
I had to change in /pimcore5-notifications/Resources/public/js - actions.js and panel.js.
Replaced /pimcore/static6/img with /bundles/pimcoreadmin/img everywhere.

Now it seems to work great. Thanks for the plugin.

Automatic notification

Notifications plugin should support automatic notification functionality -
when specific condition for given object / class of objects is met, notification to user / group of users should be sent.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.