contentful / contentful-bundle
A Symfony Bundle to integrate the Contentful CDA SDK
Installs: 414 117
Dependents: 2
Suggesters: 0
Security: 0
Stars: 32
Watchers: 34
Forks: 19
Open Issues: 3
Type:symfony-bundle
Requires
- php: ^7.4|^8.0
- contentful/contentful: ^6.0|^7.0
- psr/log: ^1.1|^2.0|^3.0
- symfony/framework-bundle: ^5.4|^6.0|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- monolog/monolog: ^2.0
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^8.5
- symfony/cache: ^5.0|^6.0|^7.0
- twig/twig: ^3.0
- dev-master
- 7.2.2
- 7.2.1
- 7.2.0
- 7.1.1
- 7.1.0
- 7.0.0
- 6.2.0
- 6.1.0
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.0
- 4.0.0
- 3.0.0
- 2.0.0
- 1.0.0
- 0.8.0-beta
- 0.6.2-beta
- 0.6.1-beta
- 0.6.0-beta
- 0.5.0-beta
- dev-add-codeowners
- dev-issue-51
- dev-php8-support
- dev-46-remove-typehint
- dev-44-remove-string-typehint
- dev-fix/php-134-circleci-badge
- dev-feature/php74-symfony-update
- dev-281-bump-up-contentful-version-2
This package is auto-updated.
Last update: 2024-10-28 14:05:41 UTC
README
Symfony Bundle for the Contentful Delivery SDK. This bundle requires PHP 7.2 or higher or PHP 8.0 or higher, and Symfony 3.4 or higher. It also requires Twig to be installed.
Setup
Add this package to your application by using Composer and executing the following command:
composer require contentful/contentful-bundle
Add ContentfulBundle to your application
// config/bundles.php return [ // ... Contentful\ContentfulBundle\ContentfulBundle::class => ['dev' => true], // ... ];
Configuration example
The simplest configuration includes just the space ID and token. Add these settings to either app/config.yml
(Symfony 3) or create config/packages/contentful.yaml
(Symfony 4):
contentful: delivery: main: space: cfexampleapi token: b4c0n73n7fu1
You can also configure multiple clients and enable the preview mode:
contentful: delivery: main: default: true space: cfexampleapi token: b4c0n73n7fu1 preview: space: cfexampleapi token: b4c0n73n7fu1 api: preview
Documentation
What is Contentful?
Contentful provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.
License
Copyright (c) 2015-2023 Contentful GmbH. Code released under the MIT license. See LICENSE for further details.