PHPackages                             web-resources/nette-manager - 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. [Framework](/categories/framework)
4. /
5. web-resources/nette-manager

ActiveLibrary[Framework](/categories/framework)

web-resources/nette-manager
===========================

Tools for managing of web resources under Nette Framework

0.1.0(11y ago)675[2 issues](https://github.com/web-resources/nette-manager/issues)BSD-3-ClausePHPPHP &gt;=5.3.0

Since Apr 28Pushed 11y ago2 watchersCompare

[ Source](https://github.com/web-resources/nette-manager)[ Packagist](https://packagist.org/packages/web-resources/nette-manager)[ RSS](/packages/web-resources-nette-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Web Resources not only for Nette Framework
==========================================

[](#web-resources-not-only-for-nette-framework)

Main purpose is to simplify management of scripts and styles by moving their definition to configs (of modules) and supporting automated generation of content.

**EXPERIMENTAL!** **BC breaks might occur.** This is still more of a draft then proper code so please bear with me.

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

[](#installation)

Add to your `composer.json` requirement `"web-resources/nette-manager": "dev-master"`. Directory `%WWW_DIR%/assets` must be writable by server (can be changed in config).

### Bootstrap

[](#bootstrap)

```
$configurator = new Nette\Config\Configurator;
// after the line above
WebResources\NetteManager\DI\WebResourcesExtension::register($configurator);
// before the line bellow
$container = $configurator->createContainer();

```

### In template

[](#in-template)

```

	...
	{include ../../libs/web-resources/nette-manager/@styles.latte}

	...
	{include ../../libs/web-resources/nette-manager/@scripts.latte}

```

Capabilities
------------

[](#capabilities)

- dependency management

### Scripts

[](#scripts)

- translations
- per script configuration
- using public, minified and raw version of script based on debugMode and config

### Styles

[](#styles)

- support for [less](http://lesscss.org/) (you must have `lessc` in path)
- extracting resources to new folders to prevent caching issues using new url
- renaming file to prevent caching issues
- generating of gzipped files - can be used by nginx using `gzip_static on;`

Usage
-----

[](#usage)

In config.neon:

```
resources:

	styles:
		bootstrap:
			filename: %appDir%/../libs/twitter/bootstrap/less/bootstrap.less
		bootstrap.responsive:
			filename: %appDir%/../libs/twitter/bootstrap/less/responsive.less
			depends: bootstrap

	scripts:
		jquery:
			filename: jquery-1.8.2.js
			public: //ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js
		bootstrap:
			filename: bootstrap.js
			minified: bootstrap.min.js
			depends: jquery
		main:
			filename: main.js
			depends: [ jquery, bootstrap ]

```

- attribute `depends` is optional, defaults to empty array (`[ ]`)

### Scripts

[](#scripts-1)

- `minified` version is optional
- at least `filename` or `public` must be defined
- switching between is done automatically in this order (`productionMode = TRUE`) `public` &gt; `minified` &gt; `filename` (`debugMode = TRUE`)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~18 days

Total

2

Last Release

4376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/beeda758b87c543b137f64bdfa14cab916075403504b8b6a00609d06f08df96c?d=identicon)[mishak87](/maintainers/mishak87)

---

Top Contributors

[![mishak87](https://avatars.githubusercontent.com/u/276500?v=4)](https://github.com/mishak87 "mishak87 (45 commits)")

---

Tags

nettestylemanagerresourcescripts

### Embed Badge

![Health badge](/badges/web-resources-nette-manager/health.svg)

```
[![Health](https://phpackages.com/badges/web-resources-nette-manager/health.svg)](https://phpackages.com/packages/web-resources-nette-manager)
```

###  Alternatives

[nette/di

💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.

92140.6M1.4k](/packages/nette-di)[nette/bootstrap

🅱 Nette Bootstrap: the simple way to configure and bootstrap your Nette application.

68435.8M590](/packages/nette-bootstrap)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[pestphp/pest-plugin

The Pest plugin manager

4458.2M108](/packages/pestphp-pest-plugin)[vojtech-dobes/nette-ajax-history

Adds History API support for Nette Framework.

30179.4k2](/packages/vojtech-dobes-nette-ajax-history)[flame/modules

Nette modules on the Steroids

1361.6k3](/packages/flame-modules)

PHPackages © 2026

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