libero / content-api-bundle
Implements the Libero content API
Installs: 238
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 2
Type:symfony-bundle
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
This is a Symfony bundle that implements the Libero content API.
Getting started
Using Composer you can add the bundle as a dependency:
composer require libero/content-api-bundle
If you're not using Symfony Flex, you'll need to enable the bundle in your application.
Configure your application to add one (or more) content APIs:
services: Libero\ContentApiBundle\Adapter\NullItems: ~ content_api: services: research-articles: items: Libero\ContentApiBundle\Adapter\NullItems blog-articles: items: Libero\ContentApiBundle\Adapter\NullItems
And add the following to your routing file:
content_api: resource: . type: content_api
This example will create two content APIs, with the prefixes research-articles
and blog-articles
.
Getting help
- Report a bug or request a feature on GitHub.
- Ask a question on the Libero Community Slack.
- Read the code of conduct.