aedart/athenaeum-http-messages


README

本包提供了一些PSR-7 HTTP消息工具。

示例

这些工具包括请求和响应序列化器,可以将对象序列化为stringarray

$factory = $this->getHttpSerializerFactory();
$serializer = $factory->make($response);

echo (string) $serializer;

// Example Output:
//
//  HTTP/1.1 201 Created
//  Content-Type: application/json
//  
//  {"id":458712,"name":"Sven Jr.","age":27}

文档

请阅读官方文档以获取更多信息。

仓库

单一仓库位于github.com/aedart/athenaeum

版本控制

本包遵循语义版本控制2.0.0

许可证

BSD-3-Clause,请阅读本包中包含的LICENSE文件