All Projects → jolicode → Jolinotif

jolicode / Jolinotif

Licence: mit
💻 Send notifications to your desktop directly from your PHP script

Labels

Projects that are alternatives of or similar to Jolinotif

core
🔥 Antares Core Implemenation. Most important project layer, this is the heart for your app. ACL, notifiter, console, geoip, areas, utils and many more...
Stars: ✭ 24 (-97.95%)
Mutual labels:  notifier
Notifier
Sends notifications via one or more channels (email, SMS, ...).
Stars: ✭ 346 (-70.4%)
Mutual labels:  notifier
Watcher
watcher is a Go package for watching for files or directory changes without using filesystem events.
Stars: ✭ 1,004 (-14.11%)
Mutual labels:  notifier
loggin-js
📝 Customizable and expandable logger for Node.js
Stars: ✭ 20 (-98.29%)
Mutual labels:  notifier
Apprise
Apprise - Push Notifications that work with just about every platform!
Stars: ✭ 4,307 (+268.43%)
Mutual labels:  notifier
Airbrake Js
Airbrake JavaScript Notifier
Stars: ✭ 389 (-66.72%)
Mutual labels:  notifier
notify
推送通知 sdk(Bark、Chanify、钉钉群机器人、Discord、邮件、飞书群机器人、Gitter、Google Chat、iGot、Logger、Mattermost、Now Push、PushBack、Push、PushDeer、PushPlus、QQ 频道机器人、Rocket Chat、Server 酱、Showdoc Push、Slack、Telegram、Webhook、企业微信群机器人、息知、Zulip)。
Stars: ✭ 335 (-71.34%)
Mutual labels:  notifier
Starhub
All about your Github account, public and private activity, watch stars, followers and much more.
Stars: ✭ 60 (-94.87%)
Mutual labels:  notifier
Laravel Desktop Notifier
💻 Send notifications to your desktop from your Laravel Artisan Commands. An JoliNotif wrapper for Laravel.
Stars: ✭ 333 (-71.51%)
Mutual labels:  notifier
Telegram Notifier
Provides Telegram integration for Symfony Notifier.
Stars: ✭ 30 (-97.43%)
Mutual labels:  notifier
lostark-wait-notifier
🐤️ Lost Ark wait notifier
Stars: ✭ 38 (-96.75%)
Mutual labels:  notifier
jsPanel3
A jQuery Plugin to create highly configurable floating panels, modals, tooltips, hints/notifiers or contextmenus for use in a backend solution and other web applications.
Stars: ✭ 89 (-92.39%)
Mutual labels:  notifier
Statping
Status Page for monitoring your websites and applications with beautiful graphs, analytics, and plugins. Run on any type of environment.
Stars: ✭ 5,806 (+396.66%)
Mutual labels:  notifier
fake-sms-notifier
Fake SMS (as email during development) Notifier Bridge
Stars: ✭ 16 (-98.63%)
Mutual labels:  notifier
University News Notifier
📚 University news notifier
Stars: ✭ 56 (-95.21%)
Mutual labels:  notifier
SimpleCloudNotifier
SimpleCloudNotifier is a app to display messages that you can send to your phone with a simple POST requests.
Stars: ✭ 15 (-98.72%)
Mutual labels:  notifier
Zsh Notify
Desktop notifications for long-running commands in zsh.
Stars: ✭ 389 (-66.72%)
Mutual labels:  notifier
Cli Error Notifier
Sends native desktop notifications if CLI apps fail
Stars: ✭ 61 (-94.78%)
Mutual labels:  notifier
Notifier
NO LIBRARIES socket per page bridge for your Laravel application. (CLIENT PART INCLUDED)
Stars: ✭ 57 (-95.12%)
Mutual labels:  notifier
Notifier For Udacity Reviewer
📢 Notifier for Udacity Reviewer - Extension for modern browsers
Stars: ✭ 22 (-98.12%)
Mutual labels:  notifier

JoliNotif demo

Total Downloads Latest Stable Version Latest Unstable Version

About JoliNotif

JoliNotif is a cross-platform PHP library to display desktop notifications. It works on Linux, Windows or MacOS.

Requires PHP >= 7.2 (support for PHP 5 was available in version 1.x, for PHP 7.0 and 7.1 in version < 2.1.0).

Note: This library can not be used in a web context (FPM or equivalent). Use it in your CLI scripts or in a CRON

Installation

Use Composer to install JoliNotif in your project:

composer require "jolicode/jolinotif"

Usage

Use the NotifierFactory to create the correct Notifier (adapted to your OS), then use it to send your notification:

include __DIR__.'/vendor/autoload.php';

use Joli\JoliNotif\Notification;
use Joli\JoliNotif\NotifierFactory;

// Create a Notifier
$notifier = NotifierFactory::create();

// Create your notification
$notification =
    (new Notification())
    ->setTitle('Notification title')
    ->setBody('This is the body of your notification')
    ->setIcon(__DIR__.'/path/to/your/icon.png')
    ->addOption('subtitle', 'This is a subtitle') // Only works on macOS (AppleScriptNotifier)
    ->addOption('sound', 'Frog') // Only works on macOS (AppleScriptNotifier)
;

// Send it
$notifier->send($notification);

A shell executable is also provided to use JoliNotif from CLI:

jolinotif --title "Hello" --body "World"

Further documentation

Discover more by reading the docs:

You can see the current and past versions using one of the following:

And finally some meta documentation:

Credits

License

JoliNotif is licensed under the MIT License - see the LICENSE file for details.

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