PHPackages                             ibr/web-asset-loader - 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. [Templating &amp; Views](/categories/templating)
4. /
5. ibr/web-asset-loader

ActiveLibrary[Templating &amp; Views](/categories/templating)

ibr/web-asset-loader
====================

Nette extension for loading JS and CSS into template.

1.0.0(9y ago)137MITPHPPHP &gt;= 5.4.0

Since Feb 24Pushed 9y ago2 watchersCompare

[ Source](https://github.com/IBRConsulting/WebAssetLoader)[ Packagist](https://packagist.org/packages/ibr/web-asset-loader)[ Docs](https://github.com/IBRConsulting/WebAssetLoader)[ RSS](/packages/ibr-web-asset-loader/feed)WikiDiscussions master Synced 2mo ago

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

Web Asset Loader
================

[](#web-asset-loader)

Nette extension for loading JS and CSS into template.

**Assets gets loaded into the page in the exact order as you define it. This is useful for loading libraries (jQuery) first or overriding css.**

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

[](#installation)

You can install WebAssetLoader using Composer:

```
composer require ibr/web-asset-loader

```

Example with Nette Framework extension
--------------------------------------

[](#example-with-nette-framework-extension)

Configuration in `config.neon`

```
extensions:
	webAssetLoader: IBR\WebAssetLoader\Nette\Extension

webAssetLoader:
	js:
		- path/to/file/file1.js
		- path/to/file/file2.js
	css:
		- path/to/file/file1.css
		- path/to/file/file2.css
```

Usage in `BasePresenter.php` (need to pass the instance of the control and create component)

```
use \IBR\WebAssetLoader\Loader as WebAssetLoader;

abstract class BasePresenter extends \Nette\Application\UI\Presenter
{
	/**
	 * @var WebAssetLoader
	 * @inject
	 */
	public $webAssetLoader;

	public function createComponentWebAssetLoader()
	{
		return $this->webAssetLoader;
	}

}
```

Usage in `@layout.latte` (or any template)

```
{control webAssetLoader:css}

{control webAssetLoader:js}
```

Result

```

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3366d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81f4e03dd403737351ce7fd90e16d789e709879cb43c219a1c8905f934910fd9?d=identicon)[ibrconsulting](/maintainers/ibrconsulting)

---

Top Contributors

[![bagr001](https://avatars.githubusercontent.com/u/5631971?v=4)](https://github.com/bagr001 "bagr001 (2 commits)")

---

Tags

cssextensionjsloadernette

### Embed Badge

![Health badge](/badges/ibr-web-asset-loader/health.svg)

```
[![Health](https://phpackages.com/badges/ibr-web-asset-loader/health.svg)](https://phpackages.com/packages/ibr-web-asset-loader)
```

###  Alternatives

[contributte/forms-bootstrap

Nette extension for Bootstrap forms

211.1M4](/packages/contributte-forms-bootstrap)[twigstan/twigstan

TwigStan is a static analyzer for Twig templates powered by PHPStan

27412.1k](/packages/twigstan-twigstan)[nepada/form-renderer

Latte template based form renderer for Nette forms with full support for Bootstrap 3, 4 &amp; 5.

11251.0k](/packages/nepada-form-renderer)[webrouse/n-asset-macro

Asset macro for Latte and Nette Framework useful for assets cache busting (with gulp, webpack, etc.)

1264.4k1](/packages/webrouse-n-asset-macro)

PHPackages © 2026

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