Download the PHP package jorgejavierleon/laravelpnotify without Composer

On this page you can find all versions of the php package jorgejavierleon/laravelpnotify. 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 laravelpnotify

Notifications message for laravel 5 with Pnotify

Build Status Latest Stable Version Total Downloads

This package give you a Laravel 5 implementation for flash messages or notifications with Pnotify javascript library.

Within your controllers you can use the Facade and get the flash message in the next request:

Installation

Begin by installing this package through Composer.

Include the service provider within config/app.php.

If you want to use the facade, add the alias to the aliases array at the bottom of config/app.php:

Pnotify

You'll need to include the Pnotify files in your views. jQuery is also require. For the complete guide refer to the documentation.

A typical instalation, with Bootstrap styling and the buttons component, will include the following

Bootstrap is not require but is the default style of the package. You can change this in the configurations.

View

Finally, you'll need to use the view that come with this package, or create one for yourself, to display the notifications.

To use the view that comes by default, include laravelPnotify::notify after the Pnotify js files

The view included is very simple, it just check the session and build the Pnotify object

Usage

Basic notices

You'll get the customary notification methods:

If you don't include a title, the body of the notice will be formatted as a title to enhance visibility

Sticky notices

By default this notifications will fadeout in 8 seconds, but you can persist the notification by chaining a sticky method

Notify::info('This notice won't fadeout')->sticky()

Customize

You can customize any configurations for the basic notice module. To customize the defaults you can publish the config file by running

Or just create your own config file config/laravelPnotify and override only the ones you need

Override

If you need to override some defaults only for the next notice, use the override method and pass it an array of options

Testing

For those of you who are doing aceptance testing and don't want to mock the notifier class, I put together a trait with some helper methods for testing the notifications messages in the larvel session. When using the trait you will be able to run assertions like $this->seeNotificationType('success') or $this->dontSeeNotification().

To get the trait go to my gist page, copy it to you helpers test folder and use like any other trait


All versions of laravelpnotify with dependencies

PHP Build Version
Package Version
No informations.
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 jorgejavierleon/laravelpnotify contains the following files

Loading the files please wait ....