libero / content-api-bundle
此包已被弃用且不再维护。未建议替换包。
实现了Libero内容API
v0.1.3
2019-05-02 12:14 UTC
Requires
- php: ^7.2
- fluentdom/fluentdom: ^7.0
- libero/ping-controller: ^0.1
- symfony/config: ^3.4 || ^4.0
- symfony/dependency-injection: ^3.4 || ^4.0
- symfony/framework-bundle: ^3.4 || ^4.0
- symfony/http-foundation: ^3.4.13 || ^4.0
- symfony/http-kernel: ^3.4 || ^4.0
- symfony/routing: ^3.4 || ^4.0
Requires (Dev)
- doctrine/dbal: ^2.8
- libero/api-problem-bundle: ^0.1
- libero/coding-standard: ^0.3
- libero/content-negotiation-bundle: ^0.1
- php-vfs/php-vfs: ^1.4
- phpstan/phpstan: ^0.10
- phpstan/phpstan-phpunit: ^0.10
- phpunit/phpunit: ^7.2
- symfony/console: ^3.4 || ^4.0
- symfony/filesystem: ^3.4 || ^4.0
- symfony/translation: ^3.4 || ^4.0
- symfony/workflow: ^3.4 || ^4.0
Suggests
- doctrine/dbal: To use the DoctrineItems adapter
- libero/api-problem-bundle: To have exceptions converted to API problems
- libero/content-negotiation-bundle: To enable content negotiation
- symfony/filesystem: To use the FilesystemItems adapter
- symfony/translation: To have exceptions converted to API problems
- symfony/workflow: To support PUT requests
README
这是一个实现Libero内容API的Symfony包。
入门
使用Composer将包作为依赖项添加
composer require libero/content-api-bundle
如果您不使用Symfony Flex,您需要启用应用中的包。
配置您的应用以添加一个(或多个)内容API
services: Libero\ContentApiBundle\Adapter\NullItems: ~ content_api: services: research-articles: items: Libero\ContentApiBundle\Adapter\NullItems blog-articles: items: Libero\ContentApiBundle\Adapter\NullItems
并在路由文件中添加以下内容
content_api: resource: . type: content_api
此示例将创建两个内容API,前缀分别为research-articles
和blog-articles
。
获取帮助
- 在GitHub上报告错误或请求功能。
- 在Libero社区Slack上提问。
- 阅读行为准则。