PHPackages                             blackcube/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. [HTTP &amp; Networking](/categories/http)
4. /
5. blackcube/ssr

ActiveLibrary[HTTP &amp; Networking](/categories/http)

blackcube/ssr
=============

Server-side routing and rendering bridge for blackcube/dcore

1.0.0(1mo ago)066↓88.9%1BSD-3-ClausePHPPHP ^8.1

Since May 23Pushed 1mo agoCompare

[ Source](https://github.com/blackcubeio/ssr)[ Packagist](https://packagist.org/packages/blackcube/ssr)[ Docs](https://github.com/blackcubeio/ssr)[ RSS](/packages/blackcube-ssr/feed)WikiDiscussions devel Synced today

READMEChangelogDependencies (21)Versions (3)Used By (1)

Blackcube SSR
=============

[](#blackcube-ssr)

Server-side routing bridge for Blackcube CMS. Maps dcore slugs to PHP handlers, injects SEO metadata, handles errors — all through PSR-15 middleware.

[![License](https://camo.githubusercontent.com/6cb285b57819f8de0acfb34923298f4f569f962544e8fe35331da2d163f4e485/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d2d332d2d436c617573652d626c75652e737667)](LICENSE.md)[![Packagist Version](https://camo.githubusercontent.com/499c02e2486f5054c07c852c966339b613afe08d44fda8d9283e5f2b11492197/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626c61636b637562652f7373722e737667)](https://packagist.org/packages/blackcube/ssr)

Where ssr sits
--------------

[](#where-ssr-sits)

```
┌────────────────────────────┐
│ your app (Yii/Slim/Laravel) │
└──────────────┬─────────────┘
               ↓
       ┌──────────────────────┐
       │ ssr ← you are here    │
       │ routing, SEO, handlers│
       └───────────┬──────────┘
                   ↓
             ┌──────────┐
             │  dcore   │
             │ (data)   │
             └──────────┘
                   ↓
                   DB

```

Quickstart
----------

[](#quickstart)

```
composer require blackcube/ssr
```

```
#[RoutingHandler(route: 'page')]
final class PageHandler implements RequestHandlerInterface
{
    public function __construct(
        private readonly Content $content,
        private readonly WebViewRenderer $viewRenderer,
    ) {}

    public function handle(ServerRequestInterface $request): ResponseInterface
    {
        return $this->viewRenderer->render('page', ['content' => $this->content]);
    }
}
```

Documentation
-------------

[](#documentation)

- [Installation](docs/installation.md) — requirements, configuration, DI wiring
- [Routing](docs/routing.md) — middleware, handler registry, attributes, dispatch modes
- [SEO](docs/seo.md) — Xeo injection, meta tags, Open Graph, Twitter Cards, JSON-LD
- [Errors](docs/errors.md) — Yii fallback handler, throwable factory, error handler registration
- [Locale](docs/locale.md) — YiiLocaleManager (set/get/resolve, session-backed, supported via Language)
- [Integration](docs/integration.md) — PSR and Yii integration, Quill helper

License
-------

[](#license)

BSD-3-Clause. See [LICENSE.md](LICENSE.md).

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

42d ago

### Community

Maintainers

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

---

Top Contributors

[![pgaultier](https://avatars.githubusercontent.com/u/545714?v=4)](https://github.com/pgaultier "pgaultier (3 commits)")

---

Tags

psr-7slugroutingpsr-15cmsseoserver-side-rendering

###  Code Quality

TestsCodeception

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[mezzio/mezzio

PSR-15 Middleware Microframework

3923.8M126](/packages/mezzio-mezzio)[sunrise/http-router

A powerful solution as the foundation of your project.

17451.6k10](/packages/sunrise-http-router)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

587.2M101](/packages/laminas-laminas-stratigility)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28591.3k3](/packages/mezzio-mezzio-authentication-oauth2)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

131.7M39](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

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