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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package http-symfony

Milpa

# 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. [![CI](https://github.com/getmilpa/http-symfony/actions/workflows/ci.yml/badge.svg)](https://github.com/getmilpa/http-symfony/actions/workflows/ci.yml) [![Packagist](https://img.shields.io/packagist/v/milpa/http-symfony.svg)](https://packagist.org/packages/milpa/http-symfony) [![PHP](https://img.shields.io/badge/php-%E2%89%A5%208.3-777bb4.svg)](https://www.php.net/) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](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 The `#[Route]` attribute and `HttpMethod` in that example come from [`milpa/http`](https://packagist.org/packages/milpa/http), which this package does **not** require — see [Requirements](#requirements). A host that routes with it already has it; the controller base class and the responses below work the same without it. ## 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.2 <1.0** - [`psr/log`](https://packagist.org/packages/psr/log) **^3.0** **`milpa/http` is not one of them**, and that is the point of the split. This package is the other half of the sentence, not a layer on top of it: the router describes *where a request goes*, these classes are *what the controller hands back*, and no line here implements, extends or imports any contract of `milpa/http` — its interfaces (`RouterInterface`, `HandlerResolverInterface`, `MiddlewareResolverInterface`, `UrlGeneratorInterface`) are PSR-7/PSR-15 seams a host kernel fills, and it declares nothing at all about responses. A host that routes with `milpa/http` requires it directly; a host that routes some other way pays nothing for it here. ## 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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package milpa/http-symfony contains the following files

Loading the files please wait ...