PHPackages                             oskarstark/symfony-http-responder - 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. oskarstark/symfony-http-responder

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

oskarstark/symfony-http-responder
=================================

This library provides a Symfony responder class, which can be used to render a template, return json or a file and redirect to route/url.

1.8.1(3mo ago)13811.0k↓34.4%4[1 issues](https://github.com/OskarStark/symfony-http-responder/issues)2MITPHPPHP &gt;=8.2CI passing

Since Mar 17Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/OskarStark/symfony-http-responder)[ Packagist](https://packagist.org/packages/oskarstark/symfony-http-responder)[ RSS](/packages/oskarstark-symfony-http-responder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (19)Used By (2)

symfony-http-responder
======================

[](#symfony-http-responder)

This library provides a Symfony responder class, which can be used to render a template, return json or a file and redirect to route/url.

[![CI](https://github.com/OskarStark/symfony-http-responder/workflows/CI/badge.svg?branch=main)](https://github.com/OskarStark/symfony-http-responder/actions?query=workflow:ci+branch:main)

This library is designed to be used in controllers which does not extend from AbstractController.

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

[](#installation)

```
composer require oskarstark/symfony-http-responder

```

Usage
-----

[](#usage)

### Render a Template

[](#render-a-template)

```
