infomax/imxplatformphp.http

dev-master 2019-11-19 08:12 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:37:06 UTC


README

This is pretty much a meta package to provide standard definitions for the PSR-7 implementation. Currenty, zendframework/zend-diactoros is used as implementation. This doesn't really matter though, as we always code to interfaces, not to actual implementations. ;) #Installation Easiest way is via composer:

"require": {
  "infomax/imxplatformphp.http": "*"
}

Then add the DefinitionsProvider to the ContainerBuilder:

$builder = new de\codenamephp\platform\di\ContainerBuilder();
...
$builder->addDefinitionsByProvider(new de\imxnet\imxplatformphp\http\DefinitionsProvider());
...
$container = $builder->build();
$container->get(\Psr\Http\Message\ServerRequestInterface::class);