Download the PHP package irishdan/notification-bundle without Composer

On this page you can find all versions of the php package irishdan/notification-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package notification-bundle

NotificationBundle

Build Status Scrutinizer Code Quality

Overview

This NotificationBundle allows for the easy creation and and sending of messages to users or other sources, via multiple channels. Its also enables easy broadcasting of data or messages via.

Out of the box with minimal configuration notifications can be sent to single or groups of users, via, email, SMS, slack and websockets (pusher).

Combine this bundle with FoundationInk Bundle to send beautiful html emails for any event Combine a pusher channel with taostr for instant and attractive notifications Combine a pusher channel and a database channel for simple direct messaging.

Basic setup

Out of the box, NotificationImage bundle should work with minimal configuration.

Step 1: Download and enable the bundle

Download with composer

Enable the bundle in the kernel

Step 2: Configure some Notification Channels

Out of the box the bundle supports several channels, including:

To enable a channel simple add its configuration to your config.yml

It's also possible to create alter an existing channel's behavior

Step 4: Database, Pusher, Nexmo, and Slack channels have additional steps.

Some channels require additional steps

Database channel

The Database channel essentially persists a Doctrine entity to the database. A generator is provided to create the entity.

Pusher channel

Pusher is a a third party service with a decent free package. You need valid pusher credendials to use the channel.

The pusher PHP library is required also. Install with composer

If you are using private channels (HIGHLY RECOMMENDED), the pusher authentication route is needed. Import the route into your project

Pusher requires a javascript library and additional to interact with pusher channel you have defined. Twig functions are provided which generate the required javascript

Nexmo channel

Nexmo Is a third party SMS service. You need valid credentials to use this channel.

Slack shannel

Slack

Step 5: Subscribe Users to one or more channels

In order for users to be sent notifications through the channels you have configured they must be subscribed to each channel.

Assuming your User class is AppBundle\Entity\User, implement the required interfaces: @TODO: Improve this

Step 6: Generate Notification objects

Each Notification is a separate Object. So for example you might have a NewMemberNotification() object and a NewPaymentReceivedNotification() object.

To create a new Notification object use the provided generator.

Step 7: Edit the Notification content

Uses twig...

Step 8: Send Notifications

To sent a notification, you need a Recipient.

Recipients are objects that implements NotifiableInterface, created in [step 5]() Notifications are objects that implement Notification interface, generated in [step 6]()

Notifications are sent using the 'notification.manager' service like so:

Documentation

For more advanced setup read the Documentation

Attribution


All versions of notification-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
symfony/framework-bundle Version 4.1.0
symfony/security Version ^4.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package irishdan/notification-bundle contains the following files

Loading the files please wait ....