Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vrkansagara/laraoutpress
This is simply compress your final out of Larvel Application and serve to the browser.
https://github.com/vrkansagara/laraoutpress
compress laravel larvel-application middleware minify
Last synced: 2 days ago
JSON representation
This is simply compress your final out of Larvel Application and serve to the browser.
- Host: GitHub
- URL: https://github.com/vrkansagara/laraoutpress
- Owner: vrkansagara
- License: bsd-3-clause
- Created: 2016-06-14T06:19:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-17T16:18:21.000Z (over 1 year ago)
- Last Synced: 2024-11-10T03:56:47.663Z (5 days ago)
- Topics: compress, laravel, larvel-application, middleware, minify
- Language: PHP
- Homepage: https://vrkansagara.in/
- Size: 15.7 MB
- Stars: 65
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# LaraOutPress (Laravel Output Press)
This is simply compress your final out of Larvel Application and serve to the browser.## How to install ?
~~~bash
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`
~~~php
Vrkansagara\LaraOutPress\ServiceProvider::class,
~~~Copy the package configuration to your local config directory using the publish command:
~~~bash
php artisan vendor:publish --provider="Vrkansagara\LaraOutPress\ServiceProvider"
~~~Enable on single environment `.env`
~~~bash
VRKANSAGARA_COMPRESS_ENVIRONMENT="${APP_ENV}"
~~~Enable on multiple environment `.env`
~~~bash
VRKANSAGARA_COMPRESS_ENVIRONMENT='prod,testing,dev,local'
~~~Enable this compressor by placing bellow code in `.env` file.
~~~bash
VRKANSAGARA_COMPRESS_ENABLED=true
~~~### Display usage on each page
~~~bash
VRKANSAGARA_COMPRESS_DEBUG= true
~~~### TO Do List
- [x] Compress browser output.
- [x] Except route(s)### Task
- [x] Add analytics before compress and after compress.
- [x] 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
![LaraOutPress](Images/LaraOutPress.png?raw=true "LaraOutPress")
#### 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.## Made with :heart: in India