The skeleton application for the Laravel framework.
revolution/laravel-console-starter is a Laravel package for the skeleton application for the laravel framework..
It currently has 0 GitHub stars and 15 downloads on Packagist.
Install it with composer require revolution/laravel-console-starter.
Discover more Laravel packages by revolution
or browse all Laravel packages to compare alternatives.
Last updated
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.
php artisan make:command..github/workflows/cron.yml) for running your commands on a schedule using GitHub Actions.laravel new --using=revolution/laravel-console-starter --no-interaction my-app
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.
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).
Laravel's built-in notification system provides a convenient way to send notifications from your console commands. This is particularly useful for:
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.
Here are some ideas for applications that can be built using this starter kit:
For detailed usage instructions and examples, please refer to our comprehensive tutorials:
MIT