yang
yang copied to clipboard
The efficient and elegant, PSR-7 compliant JSON:API 1.1 client library for PHP
I was trying to use DocumentHydrator to hydrate incoming request I found out an issue on the Hydrator relationship is not included it gets ignored consider this example ```json {...
[Http\Client\HttpClient](https://github.com/woohoolabs/yang/blob/d0a085edeb9dd7b8ebaad7d9f5a3dbbc88f7149a/src/JsonApi/Client/JsonApiClient.php#L7) is deprecated, use of [PSR-18](https://github.com/php-fig/http-client) using Psr\Http\Client\ClientInterface is [preferred](http://docs.php-http.org/en/latest/httplug/introduction.html#client-interfaces) Since https://github.com/woohoolabs/yang/blob/d0a085edeb9dd7b8ebaad7d9f5a3dbbc88f7149a/src/JsonApi/Client/JsonApiAsyncClient.php still depends on HTTPPlug, maybe this can be isolated in a separate package `woohoolabs/yang-async`? This would allow a...
As suggested in https://github.com/woohoolabs/yang/issues/32
I am currently writing a JSON:API server implementation which will also have clients that will consume the API. The server is Symfony 4 using woohoolabs/yin. It contains a bunch of...
Just implementing some stuff using this library :+1: One thing I've found rather confusing is having one ResourceObject entity for received resources and a different ResourceObject entity for when we...
Add a default to prevent misconfigured HTTP version and consequent errors like "HTTP/ is not supported by the cURL handler"
The documentation does not say how to set sort order (ascending or descending). I tried something like this but it does not work: ```php ->setJsonApiSort([ 'install' => [ 'path' =>...