Download the PHP package phpdevsr/minifyku without Composer
On this page you can find all versions of the php package phpdevsr/minifyku. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpdevsr/minifyku
More information about phpdevsr/minifyku
Files in phpdevsr/minifyku
Package minifyku
Short Description Helper versioning and minification your assets in Codeigniter 4
License MIT
Homepage https://github.com/PHPDevsr/minifyku
Informations about the package minifyku
What is Minifyku?
Minifyku is helper versioning and minification your assets with Codeigniter 4, Can be automatically use .
Installation
install with composer
Configuration
This command will copy a config file to your app namespace. Then you can adjust it to your needs. By default, file will be present in .
This configuration will be minify and combine file ,, to . Or minify and combine file ,, to .
Since v2.0.0
, new option autoMinify
for you need automated minify when loaded using helper minifyku()
and can be replaced by .env
with minifyku.autoMinify = true
. Please dont use in production, it will take more time.
Usage
Run command for minification your all assets:
or you want minify JS/CSS files:
This will prepare everything and will set up a versioning. Make sure to load a minifier helper in your controller, by calling:
Now to generate a proper tag with desired file to load, you have to make a simple call in your code:
or
Helper will be produce:
or
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contrib
We does accept and encourage contributions from the community in any shape. It doesn't matter whether you can code, write documentation, or help find bugs, all contributions are welcome.
Made with contrib.rocks.