PHPackages                             murilochianfa/laravel-auto-optimizer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. murilochianfa/laravel-auto-optimizer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

murilochianfa/laravel-auto-optimizer
====================================

Auto optimize your Laravel application in specific environments.

v1.0.1(2y ago)0740MITPHPPHP ^8.0

Since Dec 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MuriloChianfa/laravel-auto-optimizer)[ Packagist](https://packagist.org/packages/murilochianfa/laravel-auto-optimizer)[ Docs](https://github.com/MuriloChianfa/laravel-auto-optimizer)[ RSS](/packages/murilochianfa-laravel-auto-optimizer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Laravel Auto Optimizer
======================

[](#laravel-auto-optimizer)

Automatically run Laravel optimizer commands based on specific environments. After installing the package, the Laravel optimizer commands will be automatically executed when your application runs in specific environments. This helps ensure optimal performance and responsiveness in production environments.

[![Banner](banner.svg)](banner.svg)

Features
--------

[](#features)

- **Automatic Optimization**: Laravel optimizer commands are automatically executed when your application runs in specific environments, ensuring optimal performance.
- **Customizable Environments**: Easily configure the environments in which the optimizer commands should run, allowing flexibility for various project setups.
- **Easy to use Configuration**: The package comes with sensible defaults, making it ready to use without extensive setup.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require murilochianfa/laravel-auto-optimizer
```

Next, publish the configuration file:

```
php artisan vendor:publish --provider="MuriloChianfa\LaravelAutoOptimizer\AutoOptimizerServiceProvider"
```

### Dependencies

[](#dependencies)

- *Laravel 10.0 or higher.*
- *PHP 8.2 or higher.*

Configuration
-------------

[](#configuration)

Open the generated configuration file (config/laravel-auto-optimizer.php) and set up the environments and commands to optimize your Laravel application:

```
