PHPackages                             taufik-nurrohman/kirby-minify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. taufik-nurrohman/kirby-minify

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

taufik-nurrohman/kirby-minify
=============================

CSS, HTML, JavaScript, JSON, PHP, and XML compressor for Kirby CMS.

1.2.0(1y ago)548[1 issues](https://github.com/taufik-nurrohman/kirby-minify/issues)MITPHP

Since Jan 12Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/taufik-nurrohman/kirby-minify)[ Packagist](https://packagist.org/packages/taufik-nurrohman/kirby-minify)[ Docs](https://github.com/taufik-nurrohman/kirby-minify)[ Fund](https://paypal.me/tatautaufik)[ Fund](https://saweria.co/tatautaufik)[ RSS](/packages/taufik-nurrohman-kirby-minify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)DependenciesVersions (7)Used By (0)

Kirby Minify
============

[](#kirby-minify)

CSS, HTML, JavaScript, JSON, PHP, and XML compressor for [Kirby CMS](https://github.com/getkirby). This plugin has been tested with Kirby 5 with responses in the form of regular pages, CSS, JavaScript, JSON, and XML.

*Just plug and play!*

Installation
------------

[](#installation)

Tip

The `your-plugin-name\` is the name you want to use for the plugin. The recommended plugin name is `minify\`, but you may want to use a different name for certain purposes. For example, Kirby does not have a hook priority feature, so the order in which hooks are executed depends entirely on the name of the plugin folder. This plugin should ideally be executed at the very end, so it is a good idea to give it a folder name that allows it to be positioned at the very end of the plugin list.

### Download

[](#download)

Download the plugin via the [download link](https://github.com/taufik-nurrohman/kirby-minify/archive/refs/tags/v1.2.1.zip) and extract. Then put the extracted folder into the `.\site\plugins\` folder of your Kirby project. If the `plugins\` folder does not exist yet, create it first. The resulting folder structure should look like this:

```
.\
└── site\
    └── plugins\
        └── your-plugin-name\
            ├── index.php
            └── …
```

### Git

[](#git)

If you use Git to version control your project, you can install plugins that are available from an online service like GitHub as a Git sub-module:

```
git submodule add https://github.com/taufik-nurrohman/kirby-minify.git site/plugins/your-plugin-name
```

### Composer

[](#composer)

This installation method works best if your project is managed via Composer as well. Then you can run the following command from the root of your project:

```
composer require taufik-nurrohman/kirby-minify
```

Options
-------

[](#options)

Kirby configuration settings for plugins go into `.\site\config\config.php`. The configuration file contains a return statement with an array of configuration options:

```
