21torr/prismic-api

Symfony API bundle for integration into Prismic.

Installs: 235

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

4.0.0-beta.6 2021-12-02 12:16 UTC

README

Basic implementation bundle, that eases the integration of Prismic data into a Symfony application.

Installation

Define the required .env variables:

# The repository key
PRISMIC_REPOSITORY='...'

# The API token to fetch content from Prismic
PRISMIC_CONTENT_API_TOKEN='...'

# The API token to push content type changes to Prismic
PRISMIC_TYPES_API_TOKEN='...'

# An JSON array with the mapping of integration field key -> token
# example: '{"product_catalog": "abc", "test": "def"}'
PRISMIC_INTEGRATION_TOKENS='{...}'