Download the PHP package bvanhoekelen/php-compressor without Composer
On this page you can find all versions of the php package bvanhoekelen/php-compressor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bvanhoekelen/php-compressor
More information about bvanhoekelen/php-compressor
Files in bvanhoekelen/php-compressor
Download bvanhoekelen/php-compressor
More information about bvanhoekelen/php-compressor
Files in bvanhoekelen/php-compressor
Vendor bvanhoekelen
Package php-compressor
Short Description PHP compressor merge multiple css and js files into one file
License Apache-2.0
Package php-compressor
Short Description PHP compressor merge multiple css and js files into one file
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package php-compressor
PHP compressor
Highlight
- Merge several files into one file
- Live compiler, fast and no additional program is needed
- Allows user to write code that can be used in other projects » Code reuse
- The ability to set variables » see variable in help
- Support .css, .fcss and .js files
- Required no changes on the live server
- Reducing server load and client load time
- Optimizing assets for a higher rank in google search results » PageSpeed
- Easy to install » instalation
- Support for Laravel framework » Laravel
Workflow
-
Input
- Contains the building blocks
- Folder can be placed before the public folder, no access for external users
- For a better overview you can split easy your code in into several files
- No
@include
, files are automatically merged - Ordering happened by name
-
Output
- Each extension has its own file
- Use normal html tag
<link href='compressor/take.css' rel='stylesheet'>
and<script src='compressor/take.js'></script>
to grab it
- PHP compressor run (PhpCompressor::run())
- <loccation> (INPUT) directory where the .CSS, .FCSS and .JS files are
- <destination> (OUTPUT) directory that contains the
compressor/
folder. Note. de destination path is without thecompressor/
. This wil set in automatic - The output of PHP compressor wil set in the
compressor/
folder astake.*
- Run PHP compressor only in the developor environment, not in production!
Help, docs and links
Instalation
Install with Laravel
Get PHP compressor by running the composer command in the command line.
Open the AppServiceProvider.php
located in App\Providers\
.
Place the code in <head>
from the html file.
Install with composer
Get PHP compressor by running the composer command in the command line.
Run PHP compressor by place code before the view is draw.
Place the code in <head>
from the html file.
All versions of php-compressor with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package bvanhoekelen/php-compressor contains the following files
Loading the files please wait ....