Download the PHP package ez-it-solutions/app-cleanup without Composer
On this page you can find all versions of the php package ez-it-solutions/app-cleanup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ez-it-solutions/app-cleanup
More information about ez-it-solutions/app-cleanup
Files in ez-it-solutions/app-cleanup
Package app-cleanup
Short Description A beautiful Laravel command for cleaning and optimizing your application
License MIT
Informations about the package app-cleanup
Laravel App Cleanup Command

A powerful Laravel Artisan command for cleaning and optimizing your Laravel application with beautiful, informative console output.
📋 Overview
The app:cleanup command provides a comprehensive solution for clearing various Laravel caches and optimizing your application. It runs multiple optimization commands in sequence with visual feedback, progress tracking, and detailed execution statistics.
✨ Features
- Beautiful Console Output: Colorful, well-formatted console output with progress bars
- Multiple Cache Clearing Operations: Clears route, config, application, view, and event caches
- Performance Optimization: Rebuilds caches and optimizes the application
- Execution Tracking: Shows execution time for each command and total execution time
🚀 Installation
Option 1: Install via Composer (Recommended)
That's it! The package will automatically register the command with Laravel.
Compatibility
This package is compatible with Laravel 6.x, 7.x, 8.x, 9.x, and 10.x.
Option 2: Manual Installation
- Download the
AppCleanup.phpfile from our GitHub repository - Place it in your Laravel project at
app/Console/Commands/AppCleanup.php - Laravel's auto-discovery should automatically register the command
📦 Creating Your Own Package
If you want to create your own version of this package, follow these steps:
1. Set Up Package Structure
Create the following directory structure:
2. Create composer.json
3. Create Service Provider
Create a file at src/AppCleanupServiceProvider.php:
4. Update Namespace in Command
Update the namespace in your AppCleanup.php file to match your package:
5. Publish to GitHub
6. Register with Packagist
- Visit Packagist
- Submit your GitHub repository URL:
https://github.com/ez-it-solutions/app-cleanup - Once approved, your package will be available via Composer
7. Set Up GitHub Webhooks for Packagist
To automatically update your package on Packagist when you push to GitHub:
- Go to your GitHub repository settings
- Click on "Webhooks" > "Add webhook"
- Set Payload URL to:
https://packagist.org/api/github?username=your-packagist-username - Set Content type to:
application/json - Select "Just the push event"
- Click "Add webhook"
8. Add GitHub Actions for Testing (Optional)
Create a file at .github/workflows/tests.yml:
📝 Usage
Basic Usage
This will prompt for confirmation before running the cleanup process.
Skip Confirmation
This will run the cleanup process without asking for confirmation.
🔧 Customization
Adding or Removing Commands
You can easily customize which commands are run by modifying the $commands array in the handle() method:
Customizing the Output
You can customize the header and footer boxes by modifying the strings in the handle() method:
Changing the Command Name
If you want to change the command name, modify the $signature property:
📊 Output Example
🤝 Contributing
Contributions are welcome! Feel free to submit a pull request or open an issue.
📄 License
This project is open-sourced software licensed under the MIT license.
👨💻 Author
Ez IT Solutions
https://github.com/ez-it-solutions
Made with ❤️ by Ez IT Solutions