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)02811MITPHPPHP &gt;=8.0.1

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 2mo ago

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

39

—

LowBetter than 86% of packages

Maintenance46

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

414d 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://www.gravatar.com/avatar/d657fab3086d35021e607e946c4fe5f88e5c854f0ef78e3b22533b60d44092a7?d=identicon)[seeren](/maintainers/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

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k692.9M1.9k](/packages/psr-http-factory)[psr/http-client

Common interface for HTTP clients

1.7k680.7M2.1k](/packages/psr-http-client)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[laminas/laminas-diactoros

PSR HTTP Message implementations

546105.8M965](/packages/laminas-laminas-diactoros)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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