Download the PHP package loveorigami/yii2-notification-wrapper without Composer

On this page you can find all versions of the php package loveorigami/yii2-notification-wrapper. 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 yii2-notification-wrapper

Yii2-notification-wrapper

Latest Stable Version Total Downloads Monthly Downloads Daily Downloads License

Yii2-notification-wrapper module renders a message from session flash (with ajax support). All flash messages are displayed in the sequence they were assigned using setFlash.

You can set message as following:

Installation

The preferred way to install this extension is through composer.

To install with bower package for one of supported layers, either run

or add

to the section of your composer.json file.

Configure application

Let's start with defining module in our config file (@common/config/main.php):

That's all, now you have module installed and configured.

Usage

This package comes with a Wrapper widget that can be used to regularly poll the server for new notifications and trigger them visually using either Noty (or Toastr, or Growl etc.).

This widget should be used in your main layout file as follows:

Advanced usage

Every layer may be customizable from parameter in the widget. For more information - read documentation.

Some libraries can override System Confirm for links as:

Custom title

If you want change notification title, you can use in our messages

and set message in action as

Layer Id

If you want paste notification message in custom div, you can use . For example:

Disable showNoty after ajax calls

Noty Exceptions

For example:

Supported layers

Currently supported layers are:

Library (Layer) Bower Confirm Project homepage Docs
Bootstrap Alert - - http://getbootstrap.com/components/#alerts read
Bootstrap Notify remarkable-bootstrap-notify - https://github.com/mouse0270/bootstrap-notify read
Growl jquery-growl - https://github.com/ksylvest/jquery-growl read
iGrowl igrowl - https://github.com/catc/iGrowl read
jQuery Notify jquery.notify - https://github.com/CreativeDream/jquery.notify read
jQuery Notify Bar jqnotifybar - https://github.com/dknight/jQuery-Notify-bar read
jQuery Toaster jquery.toaster - https://github.com/scottoffen/jquery.toaster read
jQuery Toast Plugin jquery-toast-plugin - https://github.com/kamranahmedse/jquery-toast-plugin read
Lobibox lobibox + https://github.com/arboshiki/lobibox read
Notie notie + https://github.com/jaredreich/notie read
Notific8 notific8 - https://github.com/ralivue/notific8 read
NotifIt notifit + https://github.com/naoxink/notifIt read
Notify.js notifyjs - https://github.com/notifyjs/notifyjs read
Noty noty + https://github.com/needim/noty read
PNotify pnotify + https://github.com/sciactive/pnotify read
Sweetalert sweetalert + https://github.com/t4t5/sweetalert read
Toastr toastr - https://github.com/CodeSeven/toastr read

Full installation

Add

to the section of your composer.json file.

License

Yii2-notification-wrapper is released under the MIT License. See the bundled LICENSE.md for details.


All versions of yii2-notification-wrapper with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version ~2
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 loveorigami/yii2-notification-wrapper contains the following files

Loading the files please wait ....