contentful / contentful-bundle
用于集成Contentful CDA SDK的Symfony Bundle
7.2.2
2024-02-29 17:32 UTC
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-08-28 13:50:11 UTC
README
Contentful Delivery SDK的Symfony Bundle。此bundle需要PHP 7.2或更高版本或PHP 8.0或更高版本,以及Symfony 3.4或更高版本。它还需要安装Twig。
安装
使用 Composer 将此包添加到您的应用程序,并执行以下命令
composer require contentful/contentful-bundle
将ContentfulBundle添加到您的应用程序
// config/bundles.php return [ // ... Contentful\ContentfulBundle\ContentfulBundle::class => ['dev' => true], // ... ];
配置示例
最简单的配置仅包括空间ID和令牌。将这些设置添加到app/config.yml
(Symfony 3)中,或创建config/packages/contentful.yaml
(Symfony 4)
contentful: delivery: main: space: cfexampleapi token: b4c0n73n7fu1
您还可以配置多个客户端并启用预览模式
contentful: delivery: main: default: true space: cfexampleapi token: b4c0n73n7fu1 preview: space: cfexampleapi token: b4c0n73n7fu1 api: preview
文档
什么是Contentful?
Contentful 为数字团队提供内容基础设施,以在网站、应用程序和设备中提供内容。与CMS不同,Contentful是为了与现代软件堆栈集成而构建的。它提供了一个结构化内容的中心枢纽,强大的管理和交付API,以及可定制的Web应用程序,使开发人员和内容创作者能够更快地发布数字产品。
许可证
版权(c)2015-2023 Contentful GmbH。代码在MIT许可证下发布。有关更多详细信息,请参阅LICENSE。