Download the PHP package domainflow/http without Composer

On this page you can find all versions of the php package domainflow/http. 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

DomainFlow HTTP

Tests Packagist Version PHP Version License PHPStan

DomainFlow HTTP is a small PSR-based HTTP entry point for DomainFlow applications. It routes PSR-7 server requests to typed invokable endpoints and provides request hydration, endpoint dispatch, JSON responses, Problem Details, compiled routing, and an optional DomainFlow Core bootstrap adapter.

The package keeps application and domain code independent of Symfony HttpFoundation, a concrete PSR-7 implementation, and a full-stack framework.

Requirements

Symfony Routing and Relay are internal implementation dependencies. Concrete PSR-7 implementations and SAPI emitters remain application choices.

Installation

The optional Core bridge is available when domainflow/core is installed. The library itself does not require DomainFlow Core at runtime.

Basic composition

Declare an endpoint as an invokable class with a route attribute:

Routing and request input

Router::match() returns a RouteMatch whose routeParameters contain every application placeholder captured by the route. This includes placeholders from both the URI path and the host; internal routing metadata is not exposed:

Request hydration combines JSON body fields, query parameters, and route parameters. Query parameters override body fields, and route parameters have the highest precedence so a client cannot replace a value captured by the matched path or host.

Router::generate() always returns an origin-less URI reference such as /reports/42. The scheme and host are omitted even when the route constrains them; applications that need an absolute URI remain responsible for supplying the origin.

Runtime implementations

The package deliberately does not choose a concrete PSR implementation or SAPI emitter. A minimal application-owned composition is available in examples/runtime. It uses Nyholm PSR-7 and Laminas' HTTP handler runner:

Then request the example endpoint:

DomainFlow Core

DomainFlow\Http\Bridge\DomainFlowCore\HttpServiceProvider registers the HTTP kernel and default ports during Core bootstrap. Existing application routers, hydrators, endpoint adapters, problem mappers, and PSR factories remain application-owned. Core's callable middleware pipeline is not merged into the PSR-15 request pipeline.

Development

The package targets PHP 8.4 and 8.5, PHPStan level 10, strict formatting, dependency auditing, and full reachable-source line coverage.

License

MIT license.


All versions of http with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
phpstan/phpdoc-parser Version ^2.0
psr/container Version ^2.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
relay/relay Version ^3.0
symfony/routing Version ^7.4.12 || ^8.0.12
symfony/type-info Version ^7.4.9 || ^8.0.9
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 domainflow/http contains the following files

Loading the files please wait ...