djinn-dev / php-fig
A fast PHP8 implementation of PHP-Fig interfaces.
v0.1.2
2026-05-24 03:52 UTC
Requires
- php: >=8.3
- psr/http-factory: ^1.1.0
- psr/http-message: ^2.0
Requires (Dev)
- phpunit/phpunit: ^12.5
Provides
This package is auto-updated.
Last update: 2026-05-24 03:53:16 UTC
README
PHP-Fig
A fast PHP8 implementation of PHP-Fig interfaces.
Interfaces Implemented
- PSR-7
- PSR-17
Installation
Install the package with Composer:
composer require djinn-dev/php-fig
Usage
Example
<?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'
License
This package is released under the MIT License. See LICENSE.