eric-hansen / notifier
System notifier for PHP scripts inteded for CLI on desktops
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/eric-hansen/notifier
Requires
- php: >=5.5.0
This package is not auto-updated.
Last update: 2025-12-16 08:37:29 UTC
README
Wrapper of sorts for various notify systems, mainly useful for CLI scripts in PHP
Why?
Mainly because I was bored, and I wanted to better grasp some of the OOP and advanced PHP techniques. Plus, I find it useful to show notifications for some stuff.
To Do
- Possibly build more notifiers but who knows... I only really use notify-send.
- Make the argument passing a bit more dynamic (this is where keyword arguments like in Python would be handy)
How To Extend
The src/EricHansen/Notifier/notifiers/Notify.php file gives a good example of what's involved. All that needs to be done really is:
- Extend the \EricHansen\Notifier\NotiferBase abstract class
- Handle the arguments passed in __construct()
- Do any formatting and such in run()
- Optionally return the status of the command in run()