PHPackages                             rm/header - 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. rm/header

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

rm/header
=========

Component for generating beuty and corect html header with only files where are realy required.

v0.2.4(8y ago)115522[8 issues](https://github.com/romanmatyus/Header/issues)MITHTML

Since Apr 7Pushed 8y ago4 watchersCompare

[ Source](https://github.com/romanmatyus/Header)[ Packagist](https://packagist.org/packages/rm/header)[ Docs](https://github.com/romanmatyus/Header)[ RSS](/packages/rm-header/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (7)Used By (0)

Header
======

[](#header)

Component for generating beuty and corect html header with included AssetsCollector.

Is fork of .

License: MIT

Requirements
------------

[](#requirements)

- PHP 5.3
- Nette 2.0.5 -

Details
-------

[](#details)

Add macros
----------

[](#add-macros)

Usable in view or components.

```
{css "grid.css"} {* Find in drirectory /screen.css *}
{css "screen.css"} {* Find in drirectory $csspath/screen.css *}
{css "/var/www/sk/web/www/style/css/screen.css"} {* Find in drirectory "/var/www/sk/web/www/style/css/screen.css" *}
{js "live-form-validation.js"}
{js "jquery.min.js", "jquery.nette.js", "jquery.ajaxform.js"} {* definition with dependency *}

{cssContent}
* { color:red}
{/cssContent}

{jsContent}
$( 'textarea.editor' ).ckeditor();
{/jsContent}

```

Packages
--------

[](#packages)

For often usable files exist option for simple definition packages of files.

### Example

[](#example)

Define in `config.neon`:

```
common:
	assetsCollector:
		packages:
			jQuery:
				js:
					- %wwwDir%/style/js/jquery-1.8.2.min.js
			netteForms:
				js:
					- %wwwDir%/libs/Nette-extras/Niftyx-NiftyGrid-5163290/resources/js/netteForms.js
			jQueryUI:
				extends:
					- jQuery
				css:
					- %wwwDir%/libs/jquery-ui-1.9.1.custom/css/smoothness/jquery-ui-1.9.1.custom.min.css
				js:
					- %wwwDir%/libs/jquery-ui-1.9.1.custom/js/jquery-ui-1.9.1.custom.min.js
			NiftyGrid:
				extends:
					- jQueryUI
					- netteForms
				css:
					- %wwwDir%/libs/Nette-extras/Niftyx-NiftyGrid-5163290/resources/css/grid.css
				js:
					- %wwwDir%/libs/Nette-extras/Niftyx-NiftyGrid-5163290/resources/js/grid.js

```

Use in latte templates:

```
{pfpack "NiftyGrid"}

```

Compilators
-----------

[](#compilators)

On a CSS and JS files can be aplied compilators.

### Example

[](#example-1)

In `config.neon`:

```
common:
	assetsCollector:
		addCssCompilator:
			- @superExtraCompilator
	enabledCompilers:
		- cssSimpleMinificator
		- imageToDataStream
		- imageReplacer
		- superExtraCompilator
	services:
		superExtraCompilator:
			class: SuperExtraCompilator

```

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

[](#installation)

1. Download
2. Unpack
3. Register

    \\RM\\AssetsCollector\\AssetsCollectorExtension::register($configurator);
4. Create component Header
5. Change file @layout.latte such as this:

    {capture $html}

     ... {/capture} {control header} {!$html}
6. Use it:)

Roadmap
-------

[](#roadmap)

- FIX -&gt;setAssetsCollector($this-&gt;context-&gt;assetsCollector-&gt;collector) in documentation. Issue #2
- Add description for creating component header to documentation. Issue #3
- Call compilers by order in variable `enabledCompilers`. Issue #1
- Add macros for changing meta information from templates. Issue #4
- 2012-11-14 FIX Lazy compile
- 2012-11-13 Lazy compile
- 2012-11-13 FIX enabledCompilers for JS
- 2012-11-12 BC! Change name of macro `pfpack` to `pack`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.1% 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 ~288 days

Total

5

Last Release

2954d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1110294?v=4)[Roman Mátyus](/maintainers/romanmatyus)[@romanmatyus](https://github.com/romanmatyus)

---

Top Contributors

[![romanmatyus](https://avatars.githubusercontent.com/u/1110294?v=4)](https://github.com/romanmatyus "romanmatyus (52 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (6 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

![Health badge](/badges/rm-header/health.svg)

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

###  Alternatives

[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

911.7M6](/packages/nette-code-checker)[contributte/translation

Symfony/Translation integration for Nette Framework.

781.9M60](/packages/contributte-translation)[nette/web-project

Nette: Standard Web Project

10993.3k](/packages/nette-web-project)[tomaj/nette-api

Nette api

36273.2k8](/packages/tomaj-nette-api)[efabrica/phpstan-latte

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

PHPackages © 2026

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