library notifier
System notifier for PHP scripts inteded for CLI on desktops
eric-hansen/notifier
System notifier for PHP scripts inteded for CLI on desktops
- Monday, September 8, 2014
- by eric-hansen
- Repository
- 2 Watchers
- 1 Stars
- 1 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Notifier
Wrapper of sorts for various notify systems, mainly useful for CLI scripts in PHP, (*1)
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., (*2)
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:, (*3)
- 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()