PHPackages                             ez-it-solutions/app-cleanup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. ez-it-solutions/app-cleanup

ActiveLibrary[CLI &amp; Console](/categories/cli)

ez-it-solutions/app-cleanup
===========================

A beautiful Laravel command for cleaning and optimizing your application

v1.0.4(8mo ago)03MITPHPPHP ^7.3|^8.0

Since Sep 7Pushed 8mo agoCompare

[ Source](https://github.com/ez-it-solutions/app-cleanup)[ Packagist](https://packagist.org/packages/ez-it-solutions/app-cleanup)[ RSS](/packages/ez-it-solutions-app-cleanup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Laravel App Cleanup Command
===========================

[](#laravel-app-cleanup-command)

[![Ez IT Solutions](https://github.com/ez-it-solutions.png)](https://github.com/ez-it-solutions.png)

A powerful Laravel Artisan command for cleaning and optimizing your Laravel application with beautiful, informative console output.

📋 Overview
----------

[](#-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.

[![Command Output Example](https://camo.githubusercontent.com/9a82771ae095ccf14075b6d6fed0294b0a030192d496f5e6831f75cd77472c92/68747470733a2f2f7669612e706c616365686f6c6465722e636f6d2f383030783430303f746578743d436f6d6d616e642b4f75747075742b53637265656e73686f74)](https://camo.githubusercontent.com/9a82771ae095ccf14075b6d6fed0294b0a030192d496f5e6831f75cd77472c92/68747470733a2f2f7669612e706c616365686f6c6465722e636f6d2f383030783430303f746578743d436f6d6d616e642b4f75747075742b53637265656e73686f74)

✨ Features
----------

[](#-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
--------------

[](#-installation)

### Option 1: Install via Composer (Recommended)

[](#option-1-install-via-composer-recommended)

```
composer require ez-it-solutions/app-cleanup
```

That's it! The package will automatically register the command with Laravel.

#### Compatibility

[](#compatibility)

This package is compatible with Laravel 6.x, 7.x, 8.x, 9.x, and 10.x.

### Option 2: Manual Installation

[](#option-2-manual-installation)

1. Download the `AppCleanup.php` file from our [GitHub repository](https://github.com/ez-it-solutions/app-cleanup)
2. Place it in your Laravel project at `app/Console/Commands/AppCleanup.php`
3. Laravel's auto-discovery should automatically register the command

📦 Creating Your Own Package
---------------------------

[](#-creating-your-own-package)

If you want to create your own version of this package, follow these steps:

### 1. Set Up Package Structure

[](#1-set-up-package-structure)

Create the following directory structure:

```
app-cleanup/
├── src/
│   └── Commands/
│       └── AppCleanup.php
├── composer.json
├── LICENSE
└── README.md

```

### 2. Create composer.json

[](#2-create-composerjson)

```
{
    "name": "ez-it-solutions/app-cleanup",
    "description": "A beautiful Laravel command for cleaning and optimizing your application",
    "type": "library",
    "license": "MIT",
    "authors": [
        {
            "name": "Ez IT Solutions",
            "email": "info@ez-it-solutions.com"
        }
    ],
    "require": {
        "php": "^7.3|^8.0"
    },
    "require-dev": {
        "laravel/framework": "^6.0|^7.0|^8.0|^9.0|^10.0"
    },
    "autoload": {
        "psr-4": {
            "Ez_IT_Solutions\\AppCleanup\\": "src/"
        }
    },
    "extra": {
        "laravel": {
            "providers": [
                "Ez_IT_Solutions\\AppCleanup\\AppCleanupServiceProvider"
            ]
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}
```

### 3. Create Service Provider

[](#3-create-service-provider)

Create a file at `src/AppCleanupServiceProvider.php`:

```
