Download the PHP package milpa/http-symfony without Composer
On this page you can find all versions of the php package milpa/http-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download milpa/http-symfony
More information about milpa/http-symfony
Files in milpa/http-symfony
Download milpa/http-symfony
More information about milpa/http-symfony
Files in milpa/http-symfony
Vendor milpa
Package http-symfony
Short Description Symfony HttpFoundation adapter for the Milpa PHP framework: the HTTP response value objects and the base controller a host's routing invokes.
License Apache-2.0
Package http-symfony
Short Description Symfony HttpFoundation adapter for the Milpa PHP framework: the HTTP response value objects and the base controller a host's routing invokes.
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package http-symfony
# Milpa HTTP Symfony
> The **Symfony HttpFoundation adapter** for the Milpa PHP framework — the response value objects and the base controller a host's routing invokes.
[](https://github.com/getmilpa/http-symfony/actions/workflows/ci.yml)
[](https://packagist.org/packages/milpa/http-symfony)
[](https://www.php.net/)
[](LICENSE)
`milpa/http` describes routes and handlers without committing to any HTTP implementation. This
package is one implementation of the other half: what a controller *returns*, for a host that
speaks Symfony's HttpFoundation.
It is deliberately small. A host resolves a route to a controller method, calls it with an
HttpFoundation `Request`, and gets back an `HttpResponse`. That is the whole contract.
## Install
## What lives here
| Class | Responsibility |
|-------|-----------------|
| `HttpResponse` | The response a controller returns — a Symfony `Response` with the framework's own type, so a host can tell "a Milpa controller answered" from "something else did". |
| `BlobResponse` | A binary/file response with the download headers already set. |
| `BaseController` | What a controller extends: the container, plus the shorthands for the answers controllers actually give — `json()`, `cleanResponse()`, `redirect()`, `download()`. |
## Quick example
## What is NOT here, and why
**View rendering.** A responder that turns a template into a response needs a template engine, and
that engine is not published yet. Shipping the class anyway would put code in your `vendor/` that
cannot run — a package that can only fail is worse than one that is missing a feature. It lives
host-side until the engine earns its own release.
**PSR-7.** This is the HttpFoundation adapter. A host that speaks PSR-7 end to end does not need it:
`milpa/runtime`'s kernel and `milpa/http`'s router are already PSR-7 native.
## Requirements
- PHP **≥ 8.3**
- [`symfony/http-foundation`](https://packagist.org/packages/symfony/http-foundation) **^7.4**
- [`milpa/core`](https://packagist.org/packages/milpa/core) **^0.6**
- [`milpa/http`](https://packagist.org/packages/milpa/http) **^0.1.5**
- [`psr/log`](https://packagist.org/packages/psr/log) **^3.0**
## Contributing
Contributions are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md). Please report security issues
via [SECURITY.md](SECURITY.md), and note that this project follows a
[Code of Conduct](CODE_OF_CONDUCT.md).
## License
[Apache-2.0](LICENSE) © Rodrigo Vicente - TeamX Agency.
---
Milpa is designed, built, and maintained by **[Rodrigo Vicente - TeamX Agency](https://teamx.agency/?utm_source=github&utm_medium=readme&utm_campaign=milpa&utm_content=http-symfony)**.
All versions of http-symfony with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
symfony/http-foundation Version ^7.4
milpa/core Version >=0.6.2 <1.0
psr/log Version ^3.0
symfony/http-foundation Version ^7.4
milpa/core Version >=0.6.2 <1.0
psr/log Version ^3.0
The package milpa/http-symfony contains the following files
Loading the files please wait ...