prismic / prismic-bundle
Prismic.io integration with Symfony2
Installs: 21 275
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 18
Forks: 11
Open Issues: 3
Type:symfony-bundle
Requires
- php: >=5.3.3
- prismic/php-sdk: ~1.6.1
- symfony/framework-bundle: ~2.4
This package is not auto-updated.
Last update: 2024-05-25 14:57:58 UTC
README
⚠️ UNMAINTAINED PROJECT ⚠️
This project is now unmaintained and becomes more and more outdated comparing to the evolution of the Symfony framework. We invite you to read our PHP documentation and integrate yourself our PHP SDK in your Symfony project.
Info
This Bundle integrates the http://prismic.io php-kit with the Symfony Framework: https://github.com/prismicio/php-kit
For an example use see: https://github.com/prismicio/php-symfony-starter
Installation
Add the following dependencies to your projects composer.json
file:
"require": {
# ..
"prismic/prismic-bundle": "~1.0@dev"
# ..
}
Configuration
Add the following configuration to your projects app/config/config.yml
file:
# Default configuration for extension with alias: "prismic"
prismic:
api:
endpoint: ~ # Required
access_token: ~
client_id: ~
client_secret: ~
You can override the redirect route from the bundle configuration:
# Default configuration for extension with alias: "prismic"
prismic:
oauth:
redirect_route: home # Name of the route
redirect_route_params: [] # An array with additional route params
TODOs
- Add a listener for Symfony 2.3 to set the request data into the context as 2.3 does not support ExpressionLanguage
- Add unit (and functional?) tests
- Provide twig templates to render documents
- Make caching configurable once prismicio-community/php-kit#32 is implemented
Credits
Kudos to lsmith77 who did all the hard work!