PHPackages                             webchemistry/assets - 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. webchemistry/assets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webchemistry/assets
===================

v2.0.2(8y ago)23601PHPPHP &gt;=7.1

Since Feb 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/WebChemistry/assets)[ Packagist](https://packagist.org/packages/webchemistry/assets)[ RSS](/packages/webchemistry-assets/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (2)Versions (10)Used By (1)

Registration
------------

[](#registration)

```
extensions:
	assets: WebChemistry\Assets\DI\AssetsExtension

assets:
	resources:
		- %appDir%/assets.neon
```

Assets config
-------------

[](#assets-config)

Example in app dir create assets.neon:

```
## Front module
front:
  css:
    "compiled/front.min.css":
      - "css/*.css"
      - "plugins/bootstrap/css/bootstrap.css"
      - "plugins/forms/css/jquery.datetimepicker.css"
      - "plugins/forms/css/selectize.css"
      - "plugins/forms/css/selectize.default.css"
  js:
    "compiled/front.min.js":
      - "plugins/nette/netteForms.js"
      - "plugins/nette/nette.ajax.js"
      - "plugins/nette/extensions/spinner.ajax.js"
      - "plugins/jquery-nette-forms/libraries.js"
      - "plugins/jquery-nette-forms/errors.js"
      - "plugins/forms/js/inputmask.min.js"
      - "plugins/forms/js/inputmask.regex.extensions.min.js"
      - "plugins/forms/js/jquery.inputmask.min.js"
      - "plugins/forms/js/jquery.datetimepicker.js"
      - "plugins/forms/js/selectize.min.js"
      - "plugins/bootstrap/js/bootstrap.js"
      - "js/main.js"
    "compiled/front.header.min.js":
      - "plugins/jquery/jquery.min.js"
```

Presenter
---------

[](#presenter)

```
class BasePresenter extends Nette\Application\UI\Presenter {

	use WebChemistry\Assets\TPresenter;

}
```

Template
--------

[](#template)

```

	{$assets->getCss('compiled/front.min.css')}
	{$assets->getJs('compiled/front.head.min.js')}

```

Grunt task
----------

[](#grunt-task)

package.json

```
{
  "name": "Project",
  "version": "1.0.0",
  "devDependencies": {
    "grunt": "~0.4.5",
    "grunt-contrib-cssmin": "~0.14.0",
    "grunt-contrib-uglify": "~0.11.1",
    "grunt-nette-assets": "~0.1.0"
  },
  "dependencies": {}
}
```

Install:

```
npm install

```

Gruntfile.js:

```
module.exports = function(grunt) {
    grunt.config.init({
        netteAssets: {
            target: {
                config: 'app/resource.neon',
                basePath: 'www/'
            }
        }
    });

    grunt.loadNpmTasks('grunt-contrib-uglify');
    grunt.loadNpmTasks('grunt-contrib-cssmin');
    grunt.loadNpmTasks('grunt-nette-assets');

    return grunt.registerTask('default', ['netteAssets', 'uglify', 'cssmin']);
};
```

Run grunt:

```
grunt

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~66 days

Recently: every ~101 days

Total

9

Last Release

3263d ago

Major Versions

1.0.5 → 2.02017-06-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/312e788a47a251e05734378921d4596a91819b7de416fa18e77aa69e08798ea8?d=identicon)[Antik](/maintainers/Antik)

---

Tags

cssjsminificationminifierminifying-filesneon-filesyaml-files

### Embed Badge

![Health badge](/badges/webchemistry-assets/health.svg)

```
[![Health](https://phpackages.com/badges/webchemistry-assets/health.svg)](https://phpackages.com/packages/webchemistry-assets)
```

###  Alternatives

[efabrica/phpstan-latte

4511.9k](/packages/efabrica-phpstan-latte)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
