pear/net_growl
PEAR Net_Growl is a PHP library for sending Growl desktop notification messages from your applications. It helps you format and dispatch alerts to Growl-enabled clients, enabling simple system-style notifications for events like errors, status changes, or updates.
This package (pear/net_growl) is a legacy PEAR library for sending Growl notifications—macOS desktop alerts that were deprecated in 2012 (OS X 10.8+). Unless you’re actively maintaining a decade-old macOS-only system (e.g., legacy CI box still running Lion), do not use it. If you’re forced to:
pear install pear/pear # if PEAR is missing
pear config-set auto_discover 1
pear install pear/Net_Growl
require_once 'Net/Growl.php';
$growl = new Net_Growl('MyApp', ['MyNotification']);
$growl->register(); // Must be called first!
$growl->notify('MyNotification', 'Alert', 'Hello from PHP');
➡️ Reality check: On modern macOS, Linux, or Windows, this silently fails. For Laravel, skip this entirely—use Laravel’s native notifications with laravel-notification-channels/growl (which wraps terminal-notifier) or symfony/notifier.
try/catch—notifications will fail elsewhere:
try {
$growl->notify('MyNotification', $title, $message);
} catch (Exception $e) {
// Log but do not fail request
Log::warning('Growl notification skipped', ['error' => $e->getMessage()]);
}
notify() is stateless—no connection pooling or batch sending.register() before notify() with exact notification names. Mis-typed names cause silent drops.exec("osascript -e 'display notification ...'") (modern, no Growl needed).require_once required—breaks Laravel’s PSR-4 flow.→, ✓, emojis) corrupt. Always test with sample content.sudo tail -f /var/log/system.log | grep Growl.tcpdump -i lo 'port 9887' to inspect packets.laravel-notification-channels/growl (via terminal-notifier CLI)symfony/notifier + macos transport or native AppleScriptexec("osascript -e 'display notification \"{$msg}\" with title \"{$title}\"'")How can I help you explore Laravel packages today?