SynthNotificationBundle is a project mainly written in PHP, based on the BSD-2-Clause license.
The concept of this bundle is to provide a notification system, much like that of Facebook (but a basic version at present). Very much a work in progress! Feel free to fork and fix as you see fit =)
The concept of this bundle is to provide a notification system, much like that of Facebook (but a basic version at present).
Very much a work in progress! Feel free to fork and fix as you see fit =)
PLEASE NOTE: There are a lot of bundle assumptions here, as it's mostly been tailored for a single use case.
Update your deps
file, and add the following lines:
[SynthNotificationBundle]
git=http://github.com/synthmedia/SynthNotificationBundle.git
target=/bundles/Synth/NotificationBundle
After that, just install the new dependencies:
$ ./bin/vendor install
Register the bundle namespace in the autoloader (if you haven't already):
// app/autoloader.php
$autoloader->registerNamespaces(array(
// ...
'Synth' => __DIR__.'/../vendor/bundles',
));
Finally, make sure that the SynthNotificationBundle
is registered in the application kernel:
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Synth\NotificationBundle\SynthNotificationBundle(),
);
}
At present, the bundle only supports orm
, sorry! If anyone is interested in helping out with an odm
adaptation, give
us a shout.
Out of the box, the bundle assumes you're using the FOSUserBundle for your user authentication. If you're not, just make sure you implement the abstract Notification class in the Model directory.
These allow separation between notifications, giving developers the choice of displaying everything (a la Facebook), or individual notifications for a specific section.
Areas we'd like to work on and perfect, but aren't 'mission critical', if you will:
Dom Udall
Licenced under the New BSD License