A fast PHP8 implementation of PHP-Fig interfaces.
- PSR-7
- PSR-17
Install the package with Composer:
composer require djinn-dev/php-fig<?php
declare(strict_types=1);
use DjinnDev\Psr17\UriFactory;
$uri = UriFactory::getInstance()->createUri('https://djinn.dev/');
$target = (string) $uri->withPath('test');
// $target = 'https://djinn.dev/test'This package is released under the MIT License. See LICENSE.