Download the PHP package jordanpartridge/laravel-say-logger without Composer
On this page you can find all versions of the php package jordanpartridge/laravel-say-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jordanpartridge/laravel-say-logger
More information about jordanpartridge/laravel-say-logger
Files in jordanpartridge/laravel-say-logger
Package laravel-say-logger
Short Description A Laravel package that speaks your log messages using macOS text-to-speech with different voices for different log levels
License MIT
Informations about the package laravel-say-logger
๐ Laravel Say Logger
Never miss another error again! ๐ฏ
Laravel Say Logger brings audio feedback to your Laravel application by speaking your log messages using macOS text-to-speech. Different voices for different log levels mean you can hear the severity of issues without constantly checking log files.
Perfect for development environments where you want immediate audio feedback about your application's health.
โจ Features
- ๐ค Text-to-Speech Integration - Uses macOS
say
command - ๐ญ Voice Differentiation - Different voices for different log levels
- โก Async Processing - Non-blocking, won't slow down your app
- ๐ง Easy Configuration - Simple config file setup
- ๐๏ธ Toggle Control - Enable/disable via environment variable
- ๐งน Message Cleanup - Strips HTML tags and normalizes whitespace
- ๐ก๏ธ Error Handling - Graceful fallback if speech fails
๐ Installation
Install via Composer:
Publish the configuration file:
โ๏ธ Configuration
Add the say
channel to your config/logging.php
:
Configure voices in config/say-logger.php
:
๐ต Fun Voice Options
Want to make debugging more entertaining? Try these musical and novelty voices:
Available Voice Categories:
- Musical:
Cellos
,Organ
,Bells
,Good News
,Bad News
- Novelty:
Boing
,Bubbles
,Trinoids
,Bahh
,Whisper
- Character:
Junior
,Princess
,Albert
,Kathy
- Standard:
Alex
,Victoria
,Daniel
,Samantha
See all available voices: say -v '?'
Test a voice: say -v Cellos "Your error message here"
bash
Enable/disable speech
SAY_LOGGER_ENABLED=true
Or disable for production
SAY_LOGGER_ENABLED=false bash say -v "?"
Popular voices include: Alex, Victoria, Samantha, Daniel, Fiona, Karen, Moira, Tessa, Veena, Kyoko.
## ๐ก๏ธ Error Handling
The package includes robust error handling:
- **Graceful Fallback** - If `say` command fails, logging continues normally
- **Empty Message Protection** - Won't attempt to speak empty messages
- **Process Isolation** - Speech failures won't affect your application
## ๐ฏ Use Cases
### Development Environment
- **Immediate Error Feedback** - Hear problems as they happen
- **Hands-Free Debugging** - No need to constantly check logs
- **Severity Awareness** - Know how serious an issue is by the voice
### Demo Environments
- **Impressive Demonstrations** - Show clients real-time error handling
- **System Health Monitoring** - Audio feedback for system status
### Local Testing
- **Test Result Feedback** - Hear when tests fail
- **Performance Monitoring** - Audio alerts for slow queries
## ๐ Requirements
- **PHP**: ^8.1
- **Laravel**: ^10.0 || ^11.0
- **macOS**: Required for `say` command
- **Monolog**: ^3.0
## ๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## ๐ License
This package is open-sourced software licensed under the [MIT license](LICENSE).
## ๐ Credits
- **Jordan Partridge** - Creator and maintainer
- **Laravel Community** - For the amazing framework
- **Apple** - For the macOS `say` command
## ๐ฎ Future Ideas
- Cross-platform support (Windows SAPI, Linux espeak)
- Rate limiting for repeated messages
- Custom message filtering
- Volume control per log level
- Slack/Discord integration
- Web interface for configuration
---
**Made with โค๏ธ by [Jordan Partridge](https://partridge.rocks)**
*Never miss another error again!* ๐ฏ
All versions of laravel-say-logger with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
monolog/monolog Version ^3.0
symfony/process Version ^6.0|^7.0