php-extended / php-api-endpoint-http-json-object
此包已被弃用且不再维护。作者建议使用 php-extended/php-reifier-object 包。
实现 php-extended/php-api-endpoint-http-json-interface 库的库
6.0.7
2023-08-13 15:55 UTC
Requires
Requires (Dev)
- dev-master
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.1
- 5.0.0
- 4.0.1
- 4.0.0
- 3.5.6
- 3.5.5
- 3.5.4
- 3.5.3
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.7
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.17
- 3.0.16
- 3.0.15
- 3.0.14
- 3.0.13
- 3.0.12
- 3.0.11
- 3.0.10
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
This package is auto-updated.
Last update: 2023-08-18 08:00:16 UTC
README
实现 php-extended/php-api-endpoint-http-json-interface 库的库。
安装
此库的安装通过 composer 完成,所有类的自动加载通过它们的自动加载器完成。
- 从他们的网站下载
composer.phar
。 - 然后运行以下命令将此库作为依赖项安装
php composer.phar require php-extended/php-api-endpoint-http-json-object ^6
基本用法
此库是为了扩展而设计的。HttpEndpoint 实现是一个通用的对象,旨在简化转换为有用的端点,例如
use PhpExtended\Endpoint\HttpJsonEndpoint;
class MyEndpoint extends HttpJsonEndpoint
{
public function getFoo() : Foo
{
return $this->jsonObjectGet(Foo::class, 'https://example.com');
}
}
许可协议
MIT (查看 许可文件)。