vinkius-labs/workaholic
Composer 安装命令:
composer require vinkius-labs/workaholic
包简介
Workaholic is an advanced Laravel package designed to streamline queue and schedule management with intelligent scaling, real-time monitoring, and detailed statistics. It offers a comprehensive solution for optimizing asynchronous tasks and cron-based commands, featuring auto-discovery, auto-scaling
README 文档
README
An advanced Laravel queue manager that optimizes async processing with intelligent scaling, real-time monitoring, and detailed statistics.
⚠️ DEVELOPMENT STATUS ⚠️
This package is currently under active development and is NOT production-ready.
Please do not use in production environments. APIs and features may change without notice.
Overview
Workaholic is a high-performance, feature-rich Laravel queue worker manager that enhances your application's asynchronous processing capabilities. It provides intelligent worker scaling, health monitoring, and comprehensive statistics to ensure your queues operate efficiently even under heavy loads.
Key features
- 🔄 Auto-discovery of queue channels from environment variables
- 📊 Real-time monitoring with detailed metrics and health checks
- ⚡ Multi-worker management with optimized resource allocation
- 🤖 Auto-scaling based on queue load and system metrics
- 📲 Interactive dashboard for visualizing and managing your queues in real-time
- 🧰 Comprehensive CLI tools for queue operations
- 🔍 Daemon mode with automatic health monitoring and recovery
⚠️ Alpha Stage: Workaholic is currently in alpha development. While we welcome testing and feedback, please avoid using it in production environments until the stable 1.0.0 release.
Requirements
- PHP 8.0+
- Laravel 9.0+, 10.0+, 11.0+, 12.0+
- Redis server (for queue and metrics storage)
Installation
# Install via Composer
composer require vinkius-labs/workaholic
After installing Workaholic, the package will automatically:
- Publish the configuration file to
config/workaholic.php - Publish assets to your public directory
- Run migrations to set up the necessary database tables
You can also manually install the package by running:
php artisan workaholic:install
Updating
Workaholic is designed to update automatically whenever you run composer update. During an update:
- All assets will be republished
- New migrations will run automatically
- Routes will be reloaded
- Laravel cache will be cleared
For more information:
Configuration
Environment Variables
Workaholic uses a flexible configuration system based on environment variables:
# Example queue channel configurations WORKAHOLIC_CHANNELS_EMAIL_WORKERS=5 WORKAHOLIC_CHANNELS_EMAIL_MEMORY=256 WORKAHOLIC_CHANNELS_EMAIL_TIMEOUT=300 WORKAHOLIC_CHANNELS_EMAIL_PRIORITY=high WORKAHOLIC_CHANNELS_DEFAULT_WORKERS=3 WORKAHOLIC_CHANNELS_DEFAULT_MEMORY=128 WORKAHOLIC_CHANNELS_DEFAULT_TIMEOUT=120 WORKAHOLIC_CHANNELS_DEFAULT_PRIORITY=medium
Redis Configuration
Workaholic relies on Redis for queue management and metrics storage:
REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379
Quick Start
# Start queue workers with auto-discovery php artisan workaholic:queue start # View worker status php artisan workaholic:queue status # Monitor health with continuous updates php artisan workaholic:queue health --watch # Run in daemon mode with auto-scaling php artisan workaholic:queue daemon --auto-scale
Features
Intelligent Worker Management
# Start workers for specific channels php artisan workaholic:queue start --channels=emails,notifications # Override worker configuration php artisan workaholic:queue start --workers=5 --memory=256 --timeout=60
Real-time Monitoring
# Watch queue status in real-time php artisan workaholic:queue status --watch # Get detailed statistics php artisan workaholic:queue stats --json
Health Checks and Diagnostics
# Run a comprehensive health check php artisan workaholic:queue health # Watch health in real-time php artisan workaholic:queue health --watch
Daemon Mode with Supervision
# Run in daemon mode with health monitoring and auto-recovery
php artisan workaholic:queue daemon --auto-scale
Documentation
For comprehensive documentation, check the /docs directory or visit our documentation site.
🧪 Testing
composer test
Security
If you discover a security vulnerability, please send an email to VinkiusLabs at labs@vinkius.com. All security vulnerabilities will be promptly addressed.
License
The MIT License (MIT). Please see License File for more information.
Credits
- Vinkius Labs - Package development and maintenance
- Contributors - Community contributions
vinkius-labs/workaholic 适用场景与选型建议
vinkius-labs/workaholic 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 10 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「queue」 「cron」 「schedule」 「management」 「laravel」 「supervisor」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vinkius-labs/workaholic 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vinkius-labs/workaholic 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vinkius-labs/workaholic 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony bundle to monitor and execute commands
PHP AMQP Binding Library
Enables the creation of cron-jobs tasks to be consumed by symfony/messenger
A Laravel package to monitor queue jobs.
Scheduling extension for Yii2 framework
A Deployment/Change Log Schedule and Notes system for SilverStripe sites
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-25