psg / sr1-implementation
A fast PHP7 implementation of SR-1
0.3
2021-07-24 19:03 UTC
Requires
- php: >=7.1
- php-http/message-factory: ^1.0
- psg/sr1: ^0.1.0
Requires (Dev)
- phpunit/phpunit: ^7.5 || 8.5 || 9.4
This package is auto-updated.
Last update: 2024-10-25 02:21:10 UTC
README
A implementation of SR-1 using Nyholm's implementation of PSR 7 as the base.
composer require psg/sr1-implementation
$Factory = new \Psg\Sr1\Implementation\Factory; $request = $Factory->createRequest('GET', 'http://tnyholm.se'); $request = $request->withBodyString('{"name":"bob"}');