All Projects → vrkansagara → LaraOutPress

vrkansagara / LaraOutPress

Licence: BSD-3-Clause license
This is simply compress your final out of Larvel Application and serve to the browser.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to LaraOutPress

minifier
Middleware to minify Html, CSS and Javascript responses
Stars: ✭ 15 (-73.21%)
Mutual labels:  minify, compress
Babel Plugin Const Enum
Transform TypeScript `const` enums
Stars: ✭ 38 (-32.14%)
Mutual labels:  minify, compress
Html Minifier Terser
actively maintained fork of html-minifier - minify HTML, CSS and JS code using terser - supports ES6 code
Stars: ✭ 106 (+89.29%)
Mutual labels:  minify, compress
csso-webpack-plugin
CSSO full restructuring minification files to serve your webpack bundles
Stars: ✭ 104 (+85.71%)
Mutual labels:  minify, compress
Tiny Html Minifier
Minify HTML in PHP with just a single class
Stars: ✭ 114 (+103.57%)
Mutual labels:  minify, compress
web-dist
传统模式开发的web站点 进行整站所有文件压缩及混淆处理
Stars: ✭ 43 (-23.21%)
Mutual labels:  compress
webpack-json-access-optimizer
Webpack plugin to tree-shake and minify JSON modules
Stars: ✭ 34 (-39.29%)
Mutual labels:  minify
RecordVideo
视频录制压缩
Stars: ✭ 47 (-16.07%)
Mutual labels:  compress
Minify
Go minifiers for web formats
Stars: ✭ 2,824 (+4942.86%)
Mutual labels:  minify
ti.imagefactory
The ImageFactory Module for Appcelerator Titanium
Stars: ✭ 68 (+21.43%)
Mutual labels:  compress
uglify
PHP wrapper to execute uglify-js/clean-css node package or fallback to PHP alternatives
Stars: ✭ 16 (-71.43%)
Mutual labels:  minify
rollup-plugin-closure-compiler-js
Rollup plugin for optimizing JavaScript with google-closure-compiler-js.
Stars: ✭ 31 (-44.64%)
Mutual labels:  minify
React-Js-Todo-App-with-firebase-auth
TodoApp using ReactJS and Firebase | ReactJS, Material UI, Firebase, ExpressJS
Stars: ✭ 88 (+57.14%)
Mutual labels:  minify
ZipArchive
A single-class pure VB6 library for zip with ASM speed
Stars: ✭ 38 (-32.14%)
Mutual labels:  compress
node-mollify
middleware for minify
Stars: ✭ 17 (-69.64%)
Mutual labels:  minify
Autoptimize
Official Autoptimize repo on Github
Stars: ✭ 245 (+337.5%)
Mutual labels:  minify
xcompress
XCompress is a free file archiver utility on Linux, providing multi-format archiving to and extracting from ZIP, Z, GZIP, BZIP2, LZ, XZ, LZMA, 7ZIP, TAR, RAR and ZSTD.
Stars: ✭ 65 (+16.07%)
Mutual labels:  compress
frontend-starter-kit-with-gulp
Frontend Starter Kit with Gulp for either Themeforest Projects or customizable projects.
Stars: ✭ 34 (-39.29%)
Mutual labels:  minify
MinifyAll
A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗶𝗻𝗶𝗳𝗶𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 𝘾𝙤𝙢𝙥𝙧𝙚𝙨𝙨 and 𝙜𝙯𝙞𝙥 files and folders 📦 Reduce your bundle and file sizes with lightning speed ⚡
Stars: ✭ 54 (-3.57%)
Mutual labels:  minify
flask minify
A Flask extension to minify request's response for html, js, css and less.
Stars: ✭ 59 (+5.36%)
Mutual labels:  minify

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 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.
  • Combine all CSS
  • Combine all JavaScript files.
  • Compress using various algorithms.
  • Versioning the compressed file.
  • Except route(s)
  • Exclude middleware(s)
  • Exclude group(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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].