PHPackages                             seeren/controller - 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. seeren/controller

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

seeren/controller
=================

Manage action for http message

4.1.1(1y ago)02821MITPHPPHP &gt;=8.0.1CI failing

Since Oct 12Pushed 1y agoCompare

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

READMEChangelogDependencies (5)Versions (16)Used By (1)

Seeren\\Controller
==================

[](#seerencontroller)

[![Build](https://camo.githubusercontent.com/8ad8681b1597bb67b7bb59add95f0afb46c60d1a3bf7a2a2ac268bafbf82b45b/68747470733a2f2f6170702e7472617669732d63692e636f6d2f73656572656e2f687474702e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/seeren/controller)[![Require](https://camo.githubusercontent.com/cc6b931ae30bcb5fb90f36a5b8678b8307c0d4791e473f16d65e53820aad3244/68747470733a2f2f706f7365722e707567782e6f72672f73656572656e2f636f6e74726f6c6c65722f726571756972652f706870)](https://packagist.org/packages/seeren/controller)[![Coverage](https://camo.githubusercontent.com/438dfa164d3a12185bed1c66cbbc900624e08718628934798dc58aa86a130814/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f73656572656e2f6572726f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/seeren/controller?branch=master)[![Download](https://camo.githubusercontent.com/5e5ca14b384bd3b1dd26744abffe92bdd214c7aeddbbb88bae81674bdb664a05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656572656e2f636f6e74726f6c6c65722e737667)](https://packagist.org/packages/seeren/controller/stats)[![Codacy](https://camo.githubusercontent.com/2a9b042a42dda813ac3f5b56feb06852ba6c3ee5342d70949e26c28d78550e96/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3232336132336166656133383435383938366564663336336538343930376533)](https://www.codacy.com/gh/seeren/controller/dashboard?utm_source=github.com&utm_medium=referral&utm_content=seeren/controller&utm_campaign=Badge_Grade)[![Version](https://camo.githubusercontent.com/76719ac047608dc8b483b02242d686a6b7d067ca97839aaf923aa399a2fb2e5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656572656e2f636f6e74726f6c6c65722e737667)](https://packagist.org/packages/seeren/controller)

Manage action for http message

Installation
------------

[](#installation)

```
composer require seeren/controller
```

---

Seeren\\Controller\\JsonController
----------------------------------

[](#seerencontrollerjsoncontroller)

Retrieve PSR-7 Response for JSON format

```
use Seeren\Controller\JsonController;

$controller = new JsonController();
$response = $controller->render(['foo' => 'bar']);
```

---

Seeren\\Controller\\HTMLController
----------------------------------

[](#seerencontrollerhtmlcontroller)

Retrieve PSR-7 Response for HTML format

```
use Seeren\Controller\HTMLController;

$controller = new HTMLController();
$response = $controller->render('template.html.php', [
    'title' => 'Hello World'
]);
```

By default, templates folder is in `/templates` and include path can be specified at construction

```
project/
└─ templates/
```

Template use PHP syntax and values are sanitized by default

```

```

---

License
-------

[](#license)

This project is licensed under the [MIT](./LICENSE) License

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance42

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity76

Established project with proven stability

 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

Every ~220 days

Recently: every ~698 days

Total

15

Last Release

462d ago

Major Versions

v1.2.8 → v2.0.12017-07-31

v2.1.1 → v3.12018-04-02

v3.1 → 4.1.02022-01-08

PHP version history (3 changes)v1.0.1PHP &gt;=7.0.1

v3.1PHP &gt;=7.2.0

4.1.0PHP &gt;=8.0.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17710028?v=4)[Cyril Ichti](/maintainers/seeren)[@seeren](https://github.com/seeren)

---

Top Contributors

[![seeren](https://avatars.githubusercontent.com/u/17710028?v=4)](https://github.com/seeren "seeren (86 commits)")

---

Tags

actioncontrollerhtmljsonhttpcontroller

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seeren-controller/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.8k](/packages/guzzlehttp-psr7)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k312.3M935](/packages/symfony-psr-http-message-bridge)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538226.9M39](/packages/league-uri-interfaces)[amphp/http-server

A non-blocking HTTP application server for PHP based on Amp.

1.3k5.9M104](/packages/amphp-http-server)[league/openapi-psr7-validator

Validate PSR-7 messages against OpenAPI (3.0.2) specifications expressed in YAML or JSON

55916.8M82](/packages/league-openapi-psr7-validator)[amphp/http-client

An advanced async HTTP client library for PHP, enabling efficient, non-blocking, and concurrent requests and responses.

7308.5M190](/packages/amphp-http-client)

PHPackages © 2026

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