Download the PHP package xuma/laravel-amaran without Composer
On this page you can find all versions of the php package xuma/laravel-amaran. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xuma/laravel-amaran
More information about xuma/laravel-amaran
Files in xuma/laravel-amaran
Informations about the package laravel-amaran
AmaranJS Laravel 5 Package
AmaranJS L5 package is a Laravel wrapper for my jquery plugin AmaranJS.You can create easy and stylish notifications with AmaranJS.
Package Demo: http://ersu.me/laravel-amaranjs
Installation
Begin by installing the package through Composer. You can add your composer.json require section:
Don't forget to update composer update
.
Once this operation is complete, simply add both the service provider and facade classes to your project's config/app.php
file:
Service Provider
Facade
Installing AmaranJS jQuery Plugin
You can choose to install AmaranJS manually or you can publish assets.
If you choose install manually, extract your AmaranJS files to public/ directory. You can find installation documentation of AmaranJS here.
You can publish assets with below command and assets will be placed in /css, /js folders.
Default configuration.
If you want to use same configuration by default you can use configuration file. You can publish configuration file with below command.
Adding Output View
Add required view after your jQuery and AmaranJS links.
Example:
Usage
Usage is very simple.If you want to use default theme;
Using AmaranJS Functions
You can use most AmaranJS functions as methods like :
Binding Javascript Events to Element
You can define javascript events with bind()
method
Using as Flash Message
Normally AmaranJS bind to current view but you can add method for bind to redirected methods view.
Theme Usage
Theme usage is simple just set theme name and set content as theme template array.
Little note if you want to use awesome theme you have to include font awesome.