Download the PHP package rinvex/tmp-edvinaskrucas-notification without Composer

On this page you can find all versions of the php package rinvex/tmp-edvinaskrucas-notification. 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 tmp-edvinaskrucas-notification

Change package name temporary to "rinvex/tmp-edvinaskrucas-notification" to publish on packagist.

This is temporary forked package until a new release published by author, fully supports Laravel v8+

Package is looking for maintainers Please contact me if interested.

Notification package for Laravel4 / Laravel5

Build Status


A simple notification management package for Laravel4.



Installation

Just place require new package for your laravel installation via composer.json

"edvinaskrucas/notification": "5.*"

Then hit

Version matrix

Laravel Version Package version
= 5.4 5.2.*
>= 5.1 5.1.*
>= 5.0, < 5.1 5.0.*
>= 4, < 5 >= 2, <= 3

Registering to use it with laravel

Add following lines to

ServiceProvider array

Kernel middleware array ()

Now you are able to use it with Laravel4.

Publishing config file

If you want to edit default config file, just publish it to your app folder.

php artisan vendor:publish --provider="\Krucas\Notification\NotificationServiceProvider" --tag="config"

Usage

Default usage

Adding message to default container.

Containers

Containers allows you to set up different containers for different placeholders.

You can pass closure to modify containers, simply use this syntax showed below

Also you can access container like this

Method chaining

If you want to use default container just use as container name. Name will be taken from config file.

Instant notifications (shown in same request)

Library supports not only flash messages, if you want to show notifications in same request just use

Custom single message format

Want a custom format for single message? No problem

Also you can still pass second param (format), to format messages, but you can format individual messages as shown above.

Add message as object

You can add messages as objects

When adding message as object you can add additional params to message

Add message as closure

You can add messages by using a closure

Accessing first notification from container

You can access and show just first notification in container

Accessing first notification from all types

Displaying notifications

To display all notifications in a default container you need to add just one line to your view file

When using you may want to group your messages by type, it can be done like this

This will group all your messages in group and output it, also you can use just one, two or three groups.

Manipulating group output on the fly

Display notifications by type in default container, you can pass custom format

Displaying notifications in a specific container with custom format.

Or you can just use blade extension

Message positioning

There is ability to add message to certain position.

Clearing messages

You can clear all messages or by type.

Add message and display it instantly in a view file

Want to add message in a view file and display it? Its very simple:

You can also add multiple messages


All versions of tmp-edvinaskrucas-notification with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1.0
illuminate/support Version ^10.0.0 || ^11.0.0
illuminate/session Version ^10.0.0 || ^11.0.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 rinvex/tmp-edvinaskrucas-notification contains the following files

Loading the files please wait ....