vrkansagara / lara-out-press
This is simply compress your final out of Laravel Application and serve to the browser.
Fund package maintenance!
vrkansagara
Patreon
Tidelift
Installs: 23 485
Dependents: 0
Suggesters: 0
Security: 0
Stars: 65
Watchers: 2
Forks: 12
Open Issues: 1
Requires
- php: >=7.0|^8.0
- ext-pcre: *
- ext-zlib: *
Requires (Dev)
- laminas/laminas-coding-standard: ^2.3
- laravel/framework: 5.5.x || 8.0.x
- phpunit/phpunit: ^9.5
README
This is simply compress your final out of Larvel Application and serve to the browser.
How to install ?
composer require vrkansagara/lara-out-press
How to activate this compression middleware in your application ?
Add the ServiceProvider to the providers array in config/app.php
Vrkansagara\LaraOutPress\ServiceProvider::class,
Copy the package configuration to your local config directory using the publish command:
php artisan vendor:publish --provider="Vrkansagara\LaraOutPress\ServiceProvider"
Enable on single environment .env
VRKANSAGARA_COMPRESS_ENVIRONMENT="${APP_ENV}"
Enable on multiple environment .env
VRKANSAGARA_COMPRESS_ENVIRONMENT='prod,testing,dev,local'
Enable this compressor by placing bellow code in .env
file.
VRKANSAGARA_COMPRESS_ENABLED=true
Display usage on each page
VRKANSAGARA_COMPRESS_DEBUG= true
TO Do List
- Compress browser output.
- Except route(s)
Task
- Add analytics before compress and after compress.
- Migrate code to Laravel package format.
Code assumption
This code is developed with the mind set of each request is filtered by this middleware. So most of the code will not be flexible by nature except configuration.
Improvement and suggestion are always welcome.
LaraOutPress Screen
You can
I would like take issue and pull request regarding this project and love to answer if anything on this. I would be more happy if you have on this.