Skip to content
This is simply compress your final out of Larvel Application and serve to the browser.
Branch: master
Clone or download
Latest commit 1d0cbb1 Jan 8, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
config completing todo. Jan 3, 2019
src completing todo. Jan 3, 2019
.gitignore adding google closure compiler library Jan 2, 2019
.travis.yml updating version and debug = false Apr 3, 2018
LICENSE Initial commit Jun 14, 2016
composer.json removal of unwanted version tag. Jan 8, 2019

LaraOutPress (Laravel Output Press)

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


Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="Vrkansagara\LaraOutPress\ServiceProvider"

Enable on single environment .env


Enable on multiple environment .env


Enable this compressor by placing bellow code in .env file.


Display usage on each page.

Set $debug = 1; in AfterMiddleware.php

TO Do List

  • Compress browser output.
  • [] Combine all CSS
  • [] Combine all JavaScript files.
  • [] Compress using varis algorithms.
  • [] Versioning the compressed file.
  • [] Except route(s),middleware,group,prefix


  • 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 flexi.

Improvement and suggestion are always welcome.

You can’t perform that action at this time.