Repository navigation
Added
- Client: a PSR-18
Clientfor unary Connect calls with GET forNO_SIDE_EFFECTSmethods, timeouts and a response size limit. - Server: a PSR-15
Serverthat serves any number of services from their generated interfaces, with request size limits and timeout parsing. - Generated code and the plugin:
protoc-gen-connect-phpgenerates a service interface and a client, released as binaries for Linux, macOS and Windows. - Codecs and compression: the
protoandjsoncodecs and gzip. - Interceptors:
Interceptorwraps calls on the client and on the server, withContextandHeadersfor headers, trailers and deadlines. - Errors and details:
ConnectException,CodeandErrorDetailfor errors in the Connect format with typed details. - Conformance: runners for the Connect conformance suite in server and client mode. The server passes 172 of 172 cases and the client 180 of 184.
- Documentation: a README and guides for migrating from TwirPHP and for Symfony.
Known limitations
- Only unary calls are supported, there is no streaming.
- gRPC and gRPC-Web are not supported.
- A synchronous PSR-18 client cannot cancel a call that is in flight.
- Four
cancel-after-close-sendconformance cases fail for that reason.
Full changelog: CHANGELOG.md