2017 © Pedro Peláez
 

symfony-bundle prismic-bundle

Prismic.io integration with Symfony framework

image

osavchenko/prismic-bundle

Prismic.io integration with Symfony framework

  • Monday, May 21, 2018
  • by san4ez
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 3 Versions
  • 30 % Grown

The README.md

PrismicBundle

This Bundle integrates the http://prismic.io php-kit with the Symfony Framework:, (*1)

Installation

Add the following bundle as a dependency to your project:, (*2)

composer require osavchenko/prismic-bundle

Configuration

Full default configuration for bundle:, (*3)

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., (*4)

HOWTOs

Quick Start contains some basic example of bundle usage, (*5)

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!, (*6)

The Versions