PHPackages                             laasti/response - 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. laasti/response

ActiveLibrary[Templating &amp; Views](/categories/templating)

laasti/response
===============

A view response for symfony/http-foundation to use with template engines.

v1.2.1(10y ago)02151MITPHP

Since Aug 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Laasti/response)[ Packagist](https://packagist.org/packages/laasti/response)[ RSS](/packages/laasti-response/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (1)

Laasti/Response
===============

[](#laastiresponse)

A view response for symfony/http-foundation to use with template engines.

Waiting for concrete PSR-7 implementations before moving from Symfony.

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

[](#installation)

```
composer require laasti/response

```

Usage
-----

[](#usage)

The responder offers multiple types of responses:

1. Raw: Uses content as is
2. View: Uses a template engine to render content
3. Json: Uses the viewdata as JSON content
4. Redirect: Redirects
5. Download: Uses the content of a file and force download
6. Stream: Uses a callback to stream content when it is outputted

Currently, the package offers only a PlainPHP template engine. But, others will be added in the future, suggestions and pull requests are welcomed.

```
$viewdata = new Laasti\Response\Data\ArrayData;
$engine = new Laasti\Response\Engines(['/path/to/templates']);
$responder = new Laasti\Response\Responder($viewdata, $engine);

$responder->setData('title', 'Hello world');
$responder->setData('meta.description', 'Dummy page'); //Accessible in the template using $meta['description']

$response = $responder->view('template_name');

//Output response
$response->send();
```

Contributing
------------

[](#contributing)

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

History
-------

[](#history)

See CHANGELOG.md for more information.

Credits
-------

[](#credits)

Author: Sonia Marquette (@nebulousGirl)

License
-------

[](#license)

Released under the MIT License. See LICENSE.txt file.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

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 ~77 days

Total

4

Last Release

3688d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/48bb7fdba3e642d3dc668b9ff03ff949b9043f58096f3c85c13de508b53e7d68?d=identicon)[nebulousGirl](/maintainers/nebulousGirl)

---

Top Contributors

[![nebulousGirl](https://avatars.githubusercontent.com/u/1899256?v=4)](https://github.com/nebulousGirl "nebulousGirl (11 commits)")

### Embed Badge

![Health badge](/badges/laasti-response/health.svg)

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

###  Alternatives

[friendsofsymfony/ckeditor-bundle

Provides a CKEditor integration for your Symfony project.

53014.3M49](/packages/friendsofsymfony-ckeditor-bundle)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[iq2i/storia-bundle

UI Storia bundle

144.6k](/packages/iq2i-storia-bundle)[symfony2admingenerator/form-extensions-bundle

Add additional form types to symfony2

1331.7k1](/packages/symfony2admingenerator-form-extensions-bundle)

PHPackages © 2026

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