gsdev / fabric
This package is abandoned and no longer maintained.
No replacement package was suggested.
Fabric is a set of interfaces, traits and simple classes to help structure libraries and code that interact with APIs.
dev-master
2018-06-07 00:06 UTC
Requires
- php: >=7.1
- psr/http-message: ^1.0
- psr/log: ^1.0
- webmozart/json: ^1.2
Requires (Dev)
- guzzlehttp/guzzle: ^6.0
- guzzlehttp/psr7: ^1.0
- mockery/mockery: ^1.0
- phpmd/phpmd: @stable
- phpstan/phpstan-shim: @stable
- phpunit/phpunit: ^7.0
- slevomat/coding-standard: @stable
- squizlabs/php_codesniffer: @stable
- symfony/var-dumper: ^3.4|^4.0
Suggests
- guzzlehttp/guzzle: If you want to use the Guzzle client
This package is not auto-updated.
Last update: 2020-08-13 23:15:37 UTC
README
Fabric is a set of interfaces, traits and simple classes to help structure libraries and code that interact with APIs.
Concept / Api
In the following example we are getting the git repositories for a user.
$response = (new Client())->send(new GetRepositoriesForUser($userId));
Features
- PSR-7 Friendly (Guzzle Implementation (guzzlehttp/psr7)
- Default Client (via guzzlehttp/guzzle)