PHPackages                             netgen/layouts-sylius - 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. [Admin Panels](/categories/admin)
4. /
5. netgen/layouts-sylius

ActiveSymfony-bundle[Admin Panels](/categories/admin)

netgen/layouts-sylius
=====================

Netgen Layouts &amp; Sylius eCommerce integration

2.0.2(2mo ago)2215.6k↑48.9%33MITPHPPHP ^8.4CI passing

Since Oct 2Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/netgen-layouts/layouts-sylius)[ Packagist](https://packagist.org/packages/netgen/layouts-sylius)[ RSS](/packages/netgen-layouts-sylius/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (23)Versions (27)Used By (3)

Netgen Layouts &amp; Sylius eCommerce integration
=================================================

[](#netgen-layouts--sylius-ecommerce-integration)

Installation instructions
-------------------------

[](#installation-instructions)

### Use Composer

[](#use-composer)

Run the following command to install Netgen Layouts &amp; Sylius eCommerce integration:

```
composer require netgen/layouts-sylius
```

Symfony Flex will automatically enable the bundle and import the routes.

### Configure the main layout

[](#configure-the-main-layout)

Due to how Netgen Layouts works, your main layout template needs to wrap the `content` block inside a new `layout` block:

```
{% block layout %}
    {% block content %}
    {% endblock %}
{% endblock %}
```

All full view templates (those that are rendered directly by controllers), need to extend `nglayouts.layoutTemplate` instead of your original layout:

```
{% extends nglayouts.layoutTemplate %}

{% block content %}

    ...

{% endblock %}
```

This allows Netgen Layouts to inject a layout resolved for the request into your page. Since you configured all your full views to now use Netgen Layouts, they will not fallback to your main layout template. Because of that, you need to configure Netgen Layouts with your main layout template, so the fallback keeps working as it should.

```
# config/packages/netgen_layouts.yaml
netgen_layouts:
    pagelayout: templates/shop/layout.html.twig
```

### Activate ESI and fragments support

[](#activate-esi-and-fragments-support)

Netgen Layouts requires that ESI and fragments support is activated in Symfony.

```
# config/packages/framework.yaml
framework:
    esi: true
    fragments: true
```

### Update security rules for admin UI integration

[](#update-security-rules-for-admin-ui-integration)

To properly integrate Netgen Layouts and Sylius admin interfaces, you need to redefine the `sylius.security.admin_regex` parameter to allow access to Netgen Layouts admin routes:

```
# config/packages/security.yaml
parameters:
    sylius.security.admin_regex: "^(/%sylius_admin.path_name%|/nglayouts/app|/nglayouts/api|/nglayouts/admin|/cb)"
```

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 92.4% 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 ~115 days

Recently: every ~66 days

Total

25

Last Release

72d ago

Major Versions

0.13.0 → 1.0.02019-07-04

1.4.x-dev → 2.0.02026-02-11

PHP version history (2 changes)1.4.4PHP ^8.1

2.0.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/362286?v=4)[Edi Modrić](/maintainers/emodric)[@emodric](https://github.com/emodric)

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

---

Top Contributors

[![emodric](https://avatars.githubusercontent.com/u/362286?v=4)](https://github.com/emodric "emodric (536 commits)")[![RandyCupic](https://avatars.githubusercontent.com/u/7003823?v=4)](https://github.com/RandyCupic "RandyCupic (25 commits)")[![igorkrz](https://avatars.githubusercontent.com/u/50682206?v=4)](https://github.com/igorkrz "igorkrz (16 commits)")[![petarjakopec](https://avatars.githubusercontent.com/u/56323188?v=4)](https://github.com/petarjakopec "petarjakopec (2 commits)")[![TTrakostanec](https://avatars.githubusercontent.com/u/79454189?v=4)](https://github.com/TTrakostanec "TTrakostanec (1 commits)")

---

Tags

layoutsphpsyliussymfony

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/netgen-layouts-sylius/health.svg)

```
[![Health](https://phpackages.com/badges/netgen-layouts-sylius/health.svg)](https://phpackages.com/packages/netgen-layouts-sylius)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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