osavchenko / prismic-bundle
Prismic.io integration with Symfony framework
Installs: 86
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 11
Open Issues: 0
Type:symfony-bundle
Requires
- guzzlehttp/guzzle: ^6.3
- prismic/php-sdk: 3.*
- symfony/config: ^2.7|^3.0|^4.0
- symfony/dependency-injection: ^2.7|^3.0|^4.0
- symfony/http-foundation: ^2.7|^3.0|^4.0
- symfony/http-kernel: ^2.7|^3.0|^4.0
- symfony/routing: ^2.7|^3.0|^4.0
This package is auto-updated.
Last update: 2024-10-22 07:59:41 UTC
README
This Bundle integrates the http://prismic.io php-kit with the Symfony Framework:
Installation
Add the following bundle as a dependency to your project:
composer require osavchenko/prismic-bundle
Configuration
Full default configuration for bundle:
prismic: api: endpoint: ~ # Required access_token: ~ client_id: ~ client_secret: ~ oauth: redirect_route: home # Name of the route redirect_route_params: [] # An array with additional route params cache: true # Default apc built-in cache link_resolver_route: detail # Name of the route
LinkResolver Customization
You can override prismic.link_resolver_route
parameter with route name to handle link resolver.
This route can have $id
or $slug
parameter to find document.
If you want to implement custom logic for your LinkResolver you can override service prismic.link_resolver
.
HOWTOs
Quick Start contains some basic example of bundle usage
TODOs
- Add tests
- Make caching configurable
- Check oAuth stuff and add some examples
- Provide twig templates to render documents
Credits
Thanks to contributors of original bundle!