Download the PHP package gaaarfild/laravel-notifications without Composer

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

Laravel Convenient System Notifications

Laravel Version [Packagist]() Licence Build Status

Russian Documentation / Русская документация

Notification system for Laravel 5.

Often after saving some data from user you have to redirect to proper page and notificate user that everything done successfully or some errors appeared.

Now you can do this more convenient and easy way.

Install

To install, execute the following command in the console:

When completed, add to your config/app.php file in the providers section

If you want to use Notifications facade, add to same file at the aliases section

To change the templates, please execute the following command in the console:

php artisan vendor:publish --provider="Garf\LaravelNotifications\LaravelNotificationsServiceProvider" --tag="config"

Now you will be able to set any view file for notifications render in config/laravel-notifications.php.

Optionally you can execute the following command in the console to edit the default template, instead of using your own:

php artisan vendor:publish --provider="Garf\LaravelNotifications\LaravelNotificationsServiceProvider" --tag="views"

Note: If you publish the view and edit it, do not change the name of the view in the config file.

Usage

Save messages for the next request

$type param used especially for Twitter Bootstrap render. It displays alerts with respective class.

i.e. If you set type to danger, alert with class 'alert alert-danger' will be generated on toBootstrap() format method.

$group param groups messages to groups. :) On the next Request you can retrieve them by group.

Also more convenient aliases can be used:

Retrieving messages

All messages

Messages by group

Messages by type

Format messages

You also can format messages

JSON

You can retrieve and format all messages as JSON

Or can filter them by group or type

Render with blade view files

You can also render your notifications with custom view files

And you can filter them by group or type as well:

by default method uses Twitter Bootstrap alerts format.

Twitter Bootstrap can be required.

Other

Count Messages

Check if messages exist

Get First Message

Form Request usage

If you want to display errors via Laravel Form Request, you have to override method formatErrors() in your Form Request Class.

Don't forget to import Validator class in head of the file:

use Illuminate\Contracts\Validation\Validator;

Contributions

Contributions are highly appreciated.

Send your pull requests to master branch.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-notifications with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version >=5.1.3 <5.5
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 gaaarfild/laravel-notifications contains the following files

Loading the files please wait ....