A Laravel package for compressing the output of the application code
STEPS:-
- Create a
packages/souravmsh/
directory at the root of the Laravel application.
mkdir packages
cd packages
mkdir souravmsh
- Clone the Repository from github.
git clone https://github.com/souravmsh/compressed-output.git
- Add package repositories to the application-root
composer.json
file
"repositories": [
{
"type": "path",
"url": "./packages/souravmsh/*",
"options": {
"symlink": true
}
}
]
- install package via comopser
composer require souravmsh/compressed-output:@dev
or delete the composer.lock
file and run
composer install
- It will automatically add the package to your application
- To enable/disable the package, add the below variable to the .env file
COMPRESSED_OUTPUT_EANBLE=true/false