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

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

hypo/layout-bundle
==================

Symfony Layout Bundle

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

Since Jul 31Pushed 11y ago1 watchersCompare

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

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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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

4308d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ffae483b022895d1f7ec7e2b55ae01c7491e5f712e4edb87840391811f3ebf43?d=identicon)[ndm](/maintainers/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-bundle/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

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

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

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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