{"id":22445722,"url":"https://github.com/netgen-layouts/layouts-sylius","last_synced_at":"2026-03-05T03:34:08.128Z","repository":{"id":46654203,"uuid":"145000874","full_name":"netgen-layouts/layouts-sylius","owner":"netgen-layouts","description":"Netgen Layouts \u0026 Sylius eCommerce integration","archived":false,"fork":false,"pushed_at":"2026-02-12T08:08:54.000Z","size":832,"stargazers_count":23,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-02-12T17:33:46.997Z","etag":null,"topics":["layouts","php","sylius","symfony"],"latest_commit_sha":null,"homepage":"https://netgen.io/layouts","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netgen-layouts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-08-16T14:40:40.000Z","updated_at":"2025-09-08T11:38:26.000Z","dependencies_parsed_at":"2025-11-29T11:00:16.155Z","dependency_job_id":null,"html_url":"https://github.com/netgen-layouts/layouts-sylius","commit_stats":{"total_commits":385,"total_committers":3,"mean_commits":"128.33333333333334","dds":0.06493506493506496,"last_synced_commit":"55675817c0118050c1c3b8fb3970d13366badd9f"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/netgen-layouts/layouts-sylius","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netgen-layouts%2Flayouts-sylius","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netgen-layouts%2Flayouts-sylius/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netgen-layouts%2Flayouts-sylius/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netgen-layouts%2Flayouts-sylius/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netgen-layouts","download_url":"https://codeload.github.com/netgen-layouts/layouts-sylius/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netgen-layouts%2Flayouts-sylius/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30108668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:32:43.378Z","status":"ssl_error","status_checked_at":"2026-03-05T03:32:22.667Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["layouts","php","sylius","symfony"],"created_at":"2024-12-06T03:16:37.541Z","updated_at":"2026-03-05T03:34:08.115Z","avatar_url":"https://github.com/netgen-layouts.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Netgen Layouts \u0026 Sylius eCommerce integration\n\n## Installation instructions\n\n### Use Composer\n\nRun the following command to install Netgen Layouts \u0026 Sylius eCommerce\nintegration:\n\n```bash\ncomposer require netgen/layouts-sylius\n```\n\nSymfony Flex will automatically enable the bundle and import the routes.\n\n### Configure the main layout\n\nDue to how Netgen Layouts works, your main layout template needs to wrap the\n`content` block inside a new `layout` block:\n\n```twig\n{% block layout %}\n    {% block content %}\n    {% endblock %}\n{% endblock %}\n\n```\n\nAll full view templates (those that are rendered directly by controllers), need\nto extend `nglayouts.layoutTemplate` instead of your original layout:\n\n```twig\n{% extends nglayouts.layoutTemplate %}\n\n{% block content %}\n\n    ...\n\n{% endblock %}\n```\n\nThis allows Netgen Layouts to inject a layout resolved for the request into\nyour page. Since you configured all your full views to now use Netgen Layouts,\nthey will not fallback to your main layout template. Because of that, you need\nto configure Netgen Layouts with your main layout template, so the fallback\nkeeps working as it should.\n\n```yaml\n# config/packages/netgen_layouts.yaml\nnetgen_layouts:\n    pagelayout: templates/shop/layout.html.twig\n```\n\n### Activate ESI and fragments support\n\nNetgen Layouts requires that ESI and fragments support is activated in Symfony.\n\n```yaml\n# config/packages/framework.yaml\nframework:\n    esi: true\n    fragments: true\n```\n\n### Update security rules for admin UI integration\n\nTo properly integrate Netgen Layouts and Sylius admin interfaces, you need to\nredefine the `sylius.security.admin_regex` parameter to allow  access to\nNetgen Layouts admin routes:\n\n```yaml\n# config/packages/security.yaml\nparameters:\n    sylius.security.admin_regex: \"^(/%sylius_admin.path_name%|/nglayouts/app|/nglayouts/api|/nglayouts/admin|/cb)\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetgen-layouts%2Flayouts-sylius","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetgen-layouts%2Flayouts-sylius","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetgen-layouts%2Flayouts-sylius/lists"}