PHPackages                             hypo/layout - 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. hypo/layout

ActiveSymfony-bundle[Framework](/categories/framework)

hypo/layout
===========

Symfony Layout Bundle

1.0.0(11y ago)024MITPHPPHP &gt;=5.3.2

Since Jul 31Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Hypocamp/LayoutBundle)[ Packagist](https://packagist.org/packages/hypo/layout)[ RSS](/packages/hypo-layout/feed)WikiDiscussions master Synced yesterday

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

Hypo layout
===========

[](#hypo-layout)

The goal is to have very ligth overhead but usefull function. To acomplish that, just twig is in the scope, and function and bundle contains just files needed.

Actually the purposes are:

- Give a layout engine which decorate all pages
- css and js centralisation for twig with the function addcss and addjs

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

[](#installation)

- add to composer
- add this lines to app/AppKernel.php

```
	new Hypo\LayoutBundle\HypoLayoutBundle(),
```

- configure the bundle in config.yml (a default configuration can be find in LayoutBundle/Resources/config/defaultconfiguration.yml)

Use
---

[](#use)

### Layout management

[](#layout-management)

The annotations @Layout and @TwigVar are available to provide a rewrite of the resulting templates. The process works at the end of symfony request if :

- the code is 200
- the request is not an XHTTP request

To provide a layout for a method use the annotation @Layout :

@\\Hypo\\LayoutBundle\\Annotation\\Layout("template name")

### Dynamic assets management

[](#dynamic-assets-management)

Even if many assets could be use as static file always provide to the client, it could be usefull to have library (like rich editor by example) loaded just for a few pages. This is the purpose of those 4 twig functions or filters :

- addcss
- addjs
- getcss
- getjs

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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

4353d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15816374?v=4)[ndm](/maintainers/ndm)[@ndm](https://github.com/ndm)

---

Top Contributors

[![nicodmf](https://avatars.githubusercontent.com/u/173332?v=4)](https://github.com/nicodmf "nicodmf (8 commits)")[![aa-github](https://avatars.githubusercontent.com/u/6146797?v=4)](https://github.com/aa-github "aa-github (2 commits)")[![nicodmfz](https://avatars.githubusercontent.com/u/11727478?v=4)](https://github.com/nicodmfz "nicodmfz (1 commits)")

---

Tags

Layout management

### Embed Badge

![Health badge](/badges/hypo-layout/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M482](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[shopware/storefront

Storefront for Shopware

684.6M217](/packages/shopware-storefront)[contao/core-bundle

Contao Open Source CMS

1301.6M2.7k](/packages/contao-core-bundle)

PHPackages © 2026

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