PHPackages                             semitexa/ssr - 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. [Templating &amp; Views](/categories/templating)
4. /
5. semitexa/ssr

ActiveSemitexa-module[Templating &amp; Views](/categories/templating)

semitexa/ssr
============

Semitexa SSR - Twig-based server rendering with components, layouts, assets, and deferred slots

2026.06.21.0352(1w ago)1124[1 issues](https://github.com/semitexa/semitexa-ssr/issues)7MITPHPPHP ^8.4

Since Dec 27Pushed 1w agoCompare

[ Source](https://github.com/semitexa/semitexa-ssr)[ Packagist](https://packagist.org/packages/semitexa/ssr)[ RSS](/packages/semitexa-ssr/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (42)Versions (68)Used By (7)

Semitexa SSR
============

[](#semitexa-ssr)

Twig-based server-side rendering with components, layout slots, theme overrides, and locale-aware URL generation.

Purpose
-------

[](#purpose)

Renders HTML responses using Twig. Provides a component system discovered via `#[AsComponent]`, layout slot composition via `#[AsLayoutSlot]`, theme override support for module templates, and locale-aware URL generation.

Role in Semitexa
----------------

[](#role-in-semitexa)

Depends on Twig, Locale, and Tenancy. Used by Mail, Platform WM, Platform User, Platform Settings, and Demo. Required for packages that render HTML pages.

Key Features
------------

[](#key-features)

- `#[AsComponent]` attribute for component discovery
- `#[AsLayoutSlot]` for layout slot registration
- `#[AsDataProvider]` and `#[AsTwigExtension]` for template extensions
- `LayoutRenderer` for slot-based page composition
- Theme override system (module templates overridable via `src/theme/`)
- `UrlGenerator` with locale-aware routing
- `ModuleTemplateRegistry` for per-module template discovery
- Development hot-reload support
- Automatic `robots.txt` fallback with Semitexa-specific crawler hints when the project does not provide a real file
- Automatic `llms.txt` fallback for LLM-oriented crawl guidance when the project does not provide a real file

Deferred SSE Safety
-------------------

[](#deferred-sse-safety)

- `SSR_DEFERRED_PERSISTENT_SSE=false` is the safe default. Deferred SSR streams final HTML blocks once and then closes the SSE connection.
- `SSR_DEFERRED_PERSISTENT_SSE_REQUIRE_AUTH=true` adds a second guard for persistent mode. Even when persistent SSE is explicitly enabled, live reconnect-capable streams still require an authenticated session by default.
- For public pages and demos, keep persistent SSE disabled unless you have a specific live-update use case and have capacity controls in place.

Notes
-----

[](#notes)

SSR is required for HTML pages. JSON-only APIs do not need this package. Layout slots use handle-based scoping: `*` for global, layout frame name, or specific page handle.

If a project does not provide `robots.txt` or `public/robots.txt`, SSR emits a minimal default file automatically. Set `ROBOTS_SITEMAP_URL` when you want the generated file to advertise a classic sitemap explicitly. SSR also exposes `/sitemap.json` as a crawler-oriented JSON route inventory and advertises it from the fallback `robots.txt`.

If a project does not provide `llms.txt` or `public/llms.txt`, SSR emits a fallback `/llms.txt` document that points agents to `/sitemap.json`, `/robots.txt`, and Semitexa's page-document JSON conventions.

When an SSR page route declares extra response formats via `#[AsPayload(produces: ...)]`, Semitexa renders `` tags for the non-HTML variants of the current payload DTO. This keeps the `` aligned with the actual route contract instead of hardcoding alternates in Twig.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance78

Regular maintenance activity

Popularity13

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 54.2% 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 ~3 days

Total

61

Last Release

13d ago

Major Versions

1.0.33 → 2026.04.03.12402026-04-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/e94044da9f4c76cc5cd09ef0c693a68065787e10d0d18edfeedbef3573a9163a?d=identicon)[syntaxwanderer](/maintainers/syntaxwanderer)

---

Top Contributors

[![syntaxwanderer](https://avatars.githubusercontent.com/u/1311643?v=4)](https://github.com/syntaxwanderer "syntaxwanderer (123 commits)")[![needalicense](https://avatars.githubusercontent.com/u/13330467?v=4)](https://github.com/needalicense "needalicense (67 commits)")[![goosyboosy](https://avatars.githubusercontent.com/u/13351014?v=4)](https://github.com/goosyboosy "goosyboosy (35 commits)")[![tarashanych](https://avatars.githubusercontent.com/u/49571976?v=4)](https://github.com/tarashanych "tarashanych (2 commits)")

---

Tags

componentsdeferredfrontendlayoutsrenderingsemitexassrtwigtwigcomponentsfrontendSSRdeferredRenderinglayoutssemitexa

### Embed Badge

![Health badge](/badges/semitexa-ssr/health.svg)

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

###  Alternatives

[symfony/ux-twig-component

Twig components for Symfony

22018.6M355](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1647.0M128](/packages/symfony-ux-live-component)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16126.1k1](/packages/symfony-ux-toolkit)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

262.6k](/packages/mati365-ckeditor5-symfony)

PHPackages © 2026

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