revolution/laravel-console-starter
Composer 安装命令:
composer create-project revolution/laravel-console-starter
包简介
The skeleton application for the Laravel framework.
README 文档
README
A streamlined Laravel starter kit for building applications with custom artisan commands.
This starter kit accelerates the development of Laravel applications that primarily use artisan commands for their functionality. Instead of building standalone CLI tools, you create powerful Laravel console applications that leverage the full Laravel framework ecosystem - including dependency injection, notifications, scheduling, and testing tools. Perfect for building scheduled tasks, data processing workflows, monitoring scripts, and automated maintenance tools that benefit from Laravel's robust architecture without the web application overhead.
Note: If you would like to create a console only project based on the latest official Laravel skeleton, you can also use the laravel-slim package.
Key Features
- Focus on Console Applications: Streamlined for building Laravel applications with artisan commands, removing web-specific overhead.
- Artisan Command Ready: Quickly generate and organize your console commands using
php artisan make:command. - Scheduled Tasks with GitHub Actions: Includes a pre-configured example (
.github/workflows/cron.yml) for running your commands on a schedule using GitHub Actions. - Laravel Framework Power: Leverage familiar Laravel features like its robust dependency injection container, event system, configuration management, and application testing tools for your console applications.
Requirements
- PHP ^8.3
- Laravel Framework ^13.0
- Laravel Installer ^5.24
Installation
laravel new --using=revolution/laravel-console-starter --no-interaction my-app
Usage
Make a new command
php artisan make:command Hello --command=hello
This will create a new command class in app/Console/Commands/Hello.php. The --command=hello option sets the invokable name of your command, so you can run it later using php artisan hello.
Task Scheduling in GitHub Actions
cron.yml is an example of how to run the command in GitHub Actions. This workflow file demonstrates how to set up a cron-like schedule to execute your Artisan commands automatically. You'll need to customize it with the specific commands you want to run and their desired frequency. Remember to configure repository secrets for any sensitive information your commands might need (e.g., API keys, database credentials).
Notifications
Laravel's built-in notification system provides a convenient way to send notifications from your console commands. This is particularly useful for:
- Alerting you when a long-running task completes.
- Reporting errors or issues encountered during command execution.
- Sending updates or summaries to email, Slack, or other chat platforms.
To use this feature, you'll typically create a notification class (e.g., using php artisan make:notification TaskCompleted) and then send it using the Notification facade. You will need to configure your desired notification channels (like mail, Slack, etc.) in your Laravel application. When configuring notification channels, especially those relying on external services or specific mail drivers, you may need to publish the relevant configuration files if they don't already exist in your config directory. You can do this using the following Artisan commands:
php artisan config:publish mail php artisan config:publish services
The config/mail.php file allows you to configure your mailer settings, while config/services.php is used to store credentials and settings for various third-party services that Laravel can integrate with for notifications (e.g., Slack, Vonage). For detailed setup and usage, please refer to the official Laravel Notification documentation.
Application Ideas
Here are some ideas for applications that can be built using this starter kit:
Monitoring and Analytics
- Website uptime monitoring with Slack alerts
- Server resource usage reports via email
- SSL certificate expiration checks and email notifications
- Competitor price change tracking with Discord notifications
- API response time monitoring and alerts
- Website performance score (Lighthouse) periodic checks
Finance and Business
- Send Google AdSense revenue via email
- Notify AWS costs to Discord
- Daily cryptocurrency portfolio updates to Discord
- Stock price alerts to Slack channels
- Invoice payment deadline reminders
- Monthly expense report generation and delivery
- Subscription renewal alerts
Data Processing and Reports
- Old log file cleanup and storage space reports
- Data synchronization between different APIs with result reports
- CSV data import and processing result notifications
- Cache cleanup and optimization reports
- Periodic data exports and uploads to cloud storage
Content and Marketing
- Website broken link checks and reports
- SEO keyword ranking monitoring and change notifications
- Social media follower count change reports
- Blog post performance metrics weekly reports
- Content publication schedule reminders
- RSS feed content aggregation and notifications
- Email marketing campaign result reports
Development and DevOps
- GitHub repository dependency security alerts
- Codebase static analysis reports
- Test coverage report generation and notifications
- Post-deployment application health checks
- Unused cloud resource detection and notifications
- API documentation change detection and notifications
- Codebase TODO comment aggregation and reminders
Personal Productivity
- Daily morning weather forecast notifications
- Calendar event daily summaries
- Habit tracking and reminders
- Subscription service renewal date notifications
- Important dates and anniversary reminders
- Regular backup reminders
- Health data aggregation and trend reports
Additional Ideas
- Building AI agent tools using laravel-copilot-sdk etc.
- Building a local MCP server using the laravel/mcp package
- Domain expiration monitoring and alerts
- Suspicious access pattern detection from server logs
- Unusual financial transaction detection reports
- Automated OCR processing and results summary
- Google Trends keyword monitoring and notifications
- YouTube channel performance data aggregation
- CI/CD failure trend analysis
- Laravel package update detection alerts
- Personal spending category insights and visual reports
- Daily journal sentiment analysis and summaries
Documentation
For detailed usage instructions and examples, please refer to our comprehensive tutorials:
LICENSE
MIT
revolution/laravel-console-starter 适用场景与选型建议
revolution/laravel-console-starter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 05 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「artisan」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 revolution/laravel-console-starter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 revolution/laravel-console-starter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 revolution/laravel-console-starter 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Collection of handy Laravel artisan commands that most projects needs
Additional artisan commands for Laravel
Enterprise-Grade Modular Architecture for Laravel Applications - A powerful Laravel package that revolutionizes application development with robust Service Repository Pattern, Dynamic Module Management, and 50+ Artisan commands for scalable, maintainable applications.
Create views, including "resource" views, using console commands.
Generates Laravel Migrations from an existing database
Laravel Craftsman
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-21