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
Permalink
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
vendor/google/closure-compiler
.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
README.md
composer.json removal of unwanted version tag. Jan 8, 2019

README.md

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

 Vrkansagara\LaraOutPress\ServiceProvider::class,

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

      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.

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

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

Improvement and suggestion are always welcome.

You can’t perform that action at this time.