All Projects → GeneaLabs → Laravel Messenger

GeneaLabs / Laravel Messenger

Licence: mit
Notifying your users doesn't have to be a lot of work.

Projects that are alternatives of or similar to Laravel Messenger

laravel-firebase
Laravel FCM (Firebase Cloud Messaging) Notification Channel
Stars: ✭ 25 (-81.48%)
Mutual labels:  notifications, laravel-5-package
Xetaravel-Mentions
A package to parse @mentions from a text and mention the users with Laravel.
Stars: ✭ 26 (-80.74%)
Mutual labels:  notifications, laravel-5-package
ngx-toasta
Simple and clean Toast notification library for AngularX (Angular2 and beyond)
Stars: ✭ 20 (-85.19%)
Mutual labels:  notifications, alerts
Ember Cli Notifications
⚛ Atom inspired notification messages for ember-cli
Stars: ✭ 168 (+24.44%)
Mutual labels:  notifications, alerts
Watchable
Enable users to watch various models in your application.
Stars: ✭ 65 (-51.85%)
Mutual labels:  laravel-5-package, package
Laravel Gitscrum
GitScrum is a Project Management Tool, developed to help entrepreneurs, freelancers, managers, and teams Skyrocket their Productivity with the Agile methodology and Gamification.
Stars: ✭ 2,686 (+1889.63%)
Mutual labels:  laravel-5-package, package
video-downloader
Video Downloader for Facebook.
Stars: ✭ 63 (-53.33%)
Mutual labels:  package, laravel-5-package
Blogetc
Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.
Stars: ✭ 198 (+46.67%)
Mutual labels:  laravel-5-package, package
Notifier
NO LIBRARIES socket per page bridge for your Laravel application. (CLIENT PART INCLUDED)
Stars: ✭ 57 (-57.78%)
Mutual labels:  laravel-5-package, notifications
Notifynder
Easy Internal Notification management for laravel 4.* / 5.*
Stars: ✭ 442 (+227.41%)
Mutual labels:  laravel-5-package, notifications
Bitprophet
Node crypto trading platform for Binance exchange.
Stars: ✭ 166 (+22.96%)
Mutual labels:  notifications, alerts
Nova Map Marker Field
Provides an visual interface for editing latitude and longitude coordinates.
Stars: ✭ 96 (-28.89%)
Mutual labels:  laravel-5-package, package
apprise-api
A lightweight REST framework that wraps the Apprise Notification Library
Stars: ✭ 147 (+8.89%)
Mutual labels:  notifications, alerts
Apprise
Apprise - Push Notifications that work with just about every platform!
Stars: ✭ 4,307 (+3090.37%)
Mutual labels:  notifications, alerts
Laravel Pdf
A Simple package for easily generating PDF documents from HTML. This package is specially for laravel but you can use this without laravel.
Stars: ✭ 79 (-41.48%)
Mutual labels:  laravel-5-package, package
Facebook
📨 Facebook Notifications Channel for Laravel
Stars: ✭ 120 (-11.11%)
Mutual labels:  laravel-5-package, notifications
Laravel Short Url
A Laravel package to shorten urls
Stars: ✭ 127 (-5.93%)
Mutual labels:  package
Xmake Repo
📦 An official xmake package repository
Stars: ✭ 130 (-3.7%)
Mutual labels:  package
Butterfree
A tool for building feature stores.
Stars: ✭ 126 (-6.67%)
Mutual labels:  package
Gitdependencyresolverforunity
This plugin resolves git url dependencies in the package for Unity Package Manager. You can use a git url as a package dependency!
Stars: ✭ 126 (-6.67%)
Mutual labels:  package

Messenger for Laravel

Join the chat at https://gitter.im/GeneaLabs/laravel-messenger Travis SensioLabs Insight Scrutinizer Coveralls GitHub (pre-)release Packagist

Messenger for Laravel masthead image.

Goal

To provide a drop-in, application-wide alerting functionality to display various types of alerts and notifications to the user in response to their actions.

Prerequisites

  • Bootstrap 3 or 4
  • Laravel 5.5 or 5.6
  • PHP >= 7.1.3

Features

  • Feedback notifications in form of bootstrap alerts or modals.
  • Send notifications from facade, app IoC reference, or blade directive.
  • Display notification easily via a blade command.

Installation

composer require genealabs/laravel-messenger

Nothing else needs to be done, as the service provider and facades will be auto-loaded.

Configuration

If you need to make changes to the default configuration, run the following command to publish the configuration file config\genealabs-laravel-messenger.php:

php artisan messenger:publish --config

After that you can configure the configuration according to your needs:

/*
|--------------------------------------------------------------------------
| CSS Framework Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the CSS framework to be used by Messenger for
| Laravel. This allows you to switch or upgrade frameworks without
| having to recreate all your alerts.
|
| Available Settings: "bootstrap3", "bootstrap4"
|
*/

'framework' => 'bootstrap4',

/*
|--------------------------------------------------------------------------
| JavaScript Blade Section
|--------------------------------------------------------------------------
|
| Your layout blade template will need to have a section dedicated to
| inline JavaScript methods and commands that are injected by this
| package. This will eliminate conflicts with Vue, as well as
| making sure that JS is run after all deps are loaded.
|
*/

'javascript-blade-section' => 'js',

Usage

  1. Trigger an alert using either the facade/IoC helper, or a blade directive in another view:
// IoC helper:
app('messenger')->send('message', 'title', 'level', autoHide, 'framework');

// Facade:
Messenger::send('message', 'title', 'level', autoHide, 'framework');

// Blade directive:
@send ('message', 'title', 'level', autoHide, 'framework')
  1. Add the placeholder to your layout blade file:
<div class="container">

    @deliver

</div>

Parameters

message

string|required

The body of the message you want to deliver to your user. This may contain HTML. If you add links, be sure to add the appropriate classes for the framework you are using.

title

string | optional | default: ''

Title of the notification, will be inserted as an <h4> tag, can also include HTML. Again, keep in mind to add any framework-specific formatting yourself.

level

string | optional | default: 'info'

If provided, must be one of the following: 'info', 'success', 'warning', 'danger'.

autoHide

boolean | optional | default: false

Allows you to let the notification disappear automatically after 15 seconds. If autoHide is false, the user will be provided a close button in the alert.

framework

string | optional | default: 'bootstrap3'

Specify the framework you are using. Right now it only supports 'bootstrap3' or 'bootstrap4'.

type

string | optional | default: 'alert'

Invoke any of the available alert modes. Currently only supports 'alert' or 'modal'.

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].