All Projects → hakanersu → amaran-laravel

hakanersu / amaran-laravel

Licence: MIT license
AmaranJS stylish notification for your laravel application.

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to amaran-laravel

jquery.peekABar
jQuery plugin for a Notification Bar
Stars: ✭ 59 (+145.83%)
Mutual labels:  notification
notification-provider
A Mail Notification Library providing additional features on top of existing Email Notification clients like Microsoft Graph, Direct Send, and more!
Stars: ✭ 19 (-20.83%)
Mutual labels:  notification
Tomatobean
集成react + react-router + react-redux的轻量级前端框架。提供keep-live功能,快速构建项目。在构建中大型项目时优势明显。
Stars: ✭ 15 (-37.5%)
Mutual labels:  notification
prophetjs
Vanilla JS library to display toast messages.
Stars: ✭ 31 (+29.17%)
Mutual labels:  notification
mosha-vue-toastify
A light weight and fun Vue 3 toast or notification or snack bar or however you wanna call it library.
Stars: ✭ 185 (+670.83%)
Mutual labels:  notification
lemon
Lemon – LED Monitor – is a $79.43 opensource alternative to LaMetric that supports GitHub-, IFTTT- and Zapier-webhooks and even integrates with Pushover!
Stars: ✭ 45 (+87.5%)
Mutual labels:  notification
laravel-notification-settings
🔒 A Laravel package that allows you to check the notification settings before send them.
Stars: ✭ 28 (+16.67%)
Mutual labels:  notification
snmp notifier
A webhook to relay Prometheus alerts as SNMP traps, because sometimes, you have to deal with legacy
Stars: ✭ 33 (+37.5%)
Mutual labels:  notification
notification-service-js
🚦Notification Service based on Custom Elements
Stars: ✭ 16 (-33.33%)
Mutual labels:  notification
rx-postmessenger
Minimal RxJS adapter for the window.postMessage API for request-response streams and notification streams across frame windows.
Stars: ✭ 27 (+12.5%)
Mutual labels:  notification
keybase-chat-notifier
Simple desktop notifier for keybase chat
Stars: ✭ 18 (-25%)
Mutual labels:  notification
github-release-notifier
Automatize tasks when a specific package got a new release - Github Release Notifier
Stars: ✭ 21 (-12.5%)
Mutual labels:  notification
Sunset-hadith
Islamic app written with Kotlin, using KTOR + coroutines + flow + MVVM + Android Jetpack + Navigation component. Old version using RxJava + Retrofit + OKHttp
Stars: ✭ 26 (+8.33%)
Mutual labels:  notification
Emissary
Send notifications on different channels such as Slack, Telegram, Discord etc.
Stars: ✭ 33 (+37.5%)
Mutual labels:  notification
yii2-toastr
Yii2 - Javascript Toast Notifications
Stars: ✭ 25 (+4.17%)
Mutual labels:  notification
A-SOUL-Notification
一个A-SOUL成员动态/直播提醒插件,支持监控B站与抖音动态,可在Windows10 - Windows11系统上运行。
Stars: ✭ 56 (+133.33%)
Mutual labels:  notification
ots
A widget that can show loaders, notifications, internet connectivity changes as Overlay.
Stars: ✭ 20 (-16.67%)
Mutual labels:  notification
jetson-monitor
🚨 Jetson is an HTTP monitoring service used to notify by various messaging platforms such as Slack and Telegram
Stars: ✭ 45 (+87.5%)
Mutual labels:  notification
laravel-exception-notify
Laravel 中异常监控报警通知(Bark、Chanify、钉钉群机器人、Discord、飞书群机器人、邮件、PushDeer、QQ 频道机器人、Server 酱、Slack、Telegram、企业微信群机器人、息知)。
Stars: ✭ 52 (+116.67%)
Mutual labels:  notification
apprise-ga
GitHub Action to send a dynamic push notification to every single platform thanks to the Apprise library
Stars: ✭ 18 (-25%)
Mutual labels:  notification

AmaranJS Laravel 5 Package

Laravel Source License

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:

"xuma/laravel-amaran": "1.1.0"

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

Xuma\Amaran\AmaranServiceProvider::class,

Facade

'Amaran' => Xuma\Amaran\Facades\Amaran::class,

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.

php artisan vendor:publish --provider="Xuma\Amaran\AmaranServiceProvider" --tag="assets"

Default configuration.

If you want to use same configuration by default you can use configuration file. You can publish configuration file with below command.

php artisan vendor:publish --provider="Xuma\Amaran\AmaranServiceProvider" --tag="config"

Adding Output View

Add required view after your jQuery and AmaranJS links.

@include('amaran::javascript')

Example:

<script src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.js"></script>
<script src="js/jquery.amaran.js"></script>
@include('amaran::javascript')

Usage

Usage is very simple.If you want to use default theme;

Amaran::content(['message'=>'Hello World!'])->create();

Using AmaranJS Functions

You can use most AmaranJS functions as methods like :

Amaran::content([ 'message'=>'Hello World!'])
    ->position('top right')
    ->inEffect('slideRight')
    ->outEffect('slideBottom')
    ->sticky(true)
    ->create();

Binding Javascript Events to Element

You can define javascript events with bind() method

Amaran::content(['message'=>'Hello World!'])
    ->position('top right')
    ->bind('#start','click')
  - >create();

Using as Flash Message

Normally AmaranJS bind to current view but you can add ->flash() method for bind to redirected methods view.

Amaran::content(['message'=>'Hello World'])->flash()->create();

Theme Usage

Theme usage is simple just set theme name and set content as theme template array.

Amaran::theme('awesome ok')->content([
        'title'=>'My first funcy example!',
        'message'=>'1.4 GB',
        'info'=>'my_birthday.mp4',
        'icon'=>'fa fa-download'
    ])->create();

Little note if you want to use awesome theme you have to include font awesome.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].