PHPackages                             contentful/contentful-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. contentful/contentful-bundle

ActiveSymfony-bundle[API Development](/categories/api)

contentful/contentful-bundle
============================

A Symfony Bundle to integrate the Contentful CDA SDK

7.2.2(2y ago)33612.2k↓47.9%20[5 issues](https://github.com/contentful/ContentfulBundle/issues)[2 PRs](https://github.com/contentful/ContentfulBundle/pulls)2MITPHPPHP ^7.4|^8.0CI passing

Since Feb 22Pushed 1mo ago33 watchersCompare

[ Source](https://github.com/contentful/ContentfulBundle)[ Packagist](https://packagist.org/packages/contentful/contentful-bundle)[ RSS](/packages/contentful-contentful-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (9)Versions (35)Used By (2)

ContentfulBundle
================

[](#contentfulbundle)

[![Packagist](https://camo.githubusercontent.com/2d262111cc6c612d6035e7f6ad33ee9568b32bd54d9729786b3bcffe19a00123/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e74656e7466756c2f636f6e74656e7466756c2d62756e646c652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/contentful/contentful-bundle)[![PHP from Packagist](https://camo.githubusercontent.com/663a82caff4c2350fe51cc17d668163b50ae5ac330e2c8dd2e7bced8e80d433b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636f6e74656e7466756c2f636f6e74656e7466756c2d62756e646c652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/contentful/contentful-bundle)[![CircleCI](https://camo.githubusercontent.com/54c75c412b07793219f5f96ec5e37b6dbd6fca18450190858861e1aad7200d32/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f636f6e74656e7466756c2f436f6e74656e7466756c42756e646c652e7376673f7374796c653d666f722d7468652d6261646765)](https://circleci.com/gh/contentful/ContentfulBundle)[![Packagist](https://camo.githubusercontent.com/c9e8f2d4b2033a13a7a40c376b82bdccfcbd7fd2c28a4e1ee0edd7071bdd3429/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f6e74656e7466756c2f436f6e74656e7466756c42756e646c652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/contentful/contentful-bundle)

> 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
=====

[](#setup)

Add this package to your application by using [Composer](https://getcomposer.org/) and executing the following command:

```
composer require contentful/contentful-bundle
```

Add ContentfulBundle to your application
----------------------------------------

[](#add-contentfulbundle-to-your-application)

```
// config/bundles.php
return [
    // ...
    Contentful\ContentfulBundle\ContentfulBundle::class => ['dev' => true],
    // ...
];
```

Configuration example
---------------------

[](#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
-------------

[](#documentation)

[Getting Started Tutorial](https://www.contentful.com/developers/docs/php/tutorials/getting-started-with-contentful-and-symfony/)

What is Contentful?
-------------------

[](#what-is-contentful)

[Contentful](https://www.contentful.com) 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
-------

[](#license)

Copyright (c) 2015-2023 Contentful GmbH. Code released under the MIT license. See [LICENSE](LICENSE) for further details.

---

For Agents &amp; Contributors
-----------------------------

[](#for-agents--contributors)

DocumentWhat it covers[ARCHITECTURE.md](./ARCHITECTURE.md)Internal structure, data flows, integration points, configuration reference[CONTRIBUTING.md](./CONTRIBUTING.md)Development setup, test commands, release process, CI jobs[AGENTS.md](./AGENTS.md)Agent-first context: sharp edges, invariants, quick reference[docs/ADRs/](./docs/ADRs/)Why architectural decisions were made[docs/specs/](./docs/specs/)Active implementation specs[.bito.yaml](./.bito.yaml)Bito PR review configuration

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance56

Moderate activity, may be stable

Popularity49

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~139 days

Recently: every ~176 days

Total

22

Last Release

855d ago

Major Versions

2.0.0 → 3.0.02018-06-19

3.0.0 → 4.0.02018-12-05

4.0.0 → 5.0.02020-02-24

5.0.0 → 6.0.02020-03-24

6.2.0 → 7.0.02022-01-21

PHP version history (5 changes)0.5.0-betaPHP &gt;=5.5.9

3.0.0PHP ^7.0

6.0.0PHP ^7.2

6.2.0PHP ^7.2|^8.0

7.0.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6caf49052fd43966f7e5c1a6e78e4a9830f9dd014470be9f5da0736d141c0ea5?d=identicon)[mariobodemann](/maintainers/mariobodemann)

![](https://www.gravatar.com/avatar/c0d178c1c40db8c7e92e9fe71e0f2ef461d683679ae69275adf6661c8f3b8b67?d=identicon)[contentful](/maintainers/contentful)

---

Top Contributors

[![realityking](https://avatars.githubusercontent.com/u/628508?v=4)](https://github.com/realityking "realityking (67 commits)")[![Sebb767](https://avatars.githubusercontent.com/u/4084001?v=4)](https://github.com/Sebb767 "Sebb767 (39 commits)")[![pgrigoruta](https://avatars.githubusercontent.com/u/1782518?v=4)](https://github.com/pgrigoruta "pgrigoruta (24 commits)")[![dborsatto](https://avatars.githubusercontent.com/u/94651?v=4)](https://github.com/dborsatto "dborsatto (20 commits)")[![whitelisab](https://avatars.githubusercontent.com/u/62958907?v=4)](https://github.com/whitelisab "whitelisab (7 commits)")[![tomaszhanc](https://avatars.githubusercontent.com/u/7013293?v=4)](https://github.com/tomaszhanc "tomaszhanc (5 commits)")[![tylerpina](https://avatars.githubusercontent.com/u/214021765?v=4)](https://github.com/tylerpina "tylerpina (4 commits)")[![asuri0n](https://avatars.githubusercontent.com/u/15729117?v=4)](https://github.com/asuri0n "asuri0n (2 commits)")[![jjolton-contentful](https://avatars.githubusercontent.com/u/145477871?v=4)](https://github.com/jjolton-contentful "jjolton-contentful (2 commits)")[![Fantus](https://avatars.githubusercontent.com/u/1288316?v=4)](https://github.com/Fantus "Fantus (2 commits)")[![yadakhov](https://avatars.githubusercontent.com/u/146636?v=4)](https://github.com/yadakhov "yadakhov (1 commits)")[![forged-request](https://avatars.githubusercontent.com/u/104775415?v=4)](https://github.com/forged-request "forged-request (1 commits)")[![ilukac](https://avatars.githubusercontent.com/u/452964?v=4)](https://github.com/ilukac "ilukac (1 commits)")[![kobelobster](https://avatars.githubusercontent.com/u/3509557?v=4)](https://github.com/kobelobster "kobelobster (1 commits)")[![kwivix](https://avatars.githubusercontent.com/u/1106023?v=4)](https://github.com/kwivix "kwivix (1 commits)")[![lenybernard](https://avatars.githubusercontent.com/u/618536?v=4)](https://github.com/lenybernard "lenybernard (1 commits)")[![mariobodemann](https://avatars.githubusercontent.com/u/1162562?v=4)](https://github.com/mariobodemann "mariobodemann (1 commits)")[![matthew-contentful](https://avatars.githubusercontent.com/u/52446913?v=4)](https://github.com/matthew-contentful "matthew-contentful (1 commits)")[![mmenozzi](https://avatars.githubusercontent.com/u/1199914?v=4)](https://github.com/mmenozzi "mmenozzi (1 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")

---

Tags

contentfulphpsymfony-bundlesymfonysdkcmscontentful

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/contentful-contentful-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/contentful-contentful-bundle/health.svg)](https://phpackages.com/packages/contentful-contentful-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
