contentful/laravel

Integrates the Contentful PHP SDK with Laravel.
547,472 45
Install
composer require contentful/laravel
Latest Version:10.0.0
PHP:^8.2
License:MIT
Last Updated:Aug 29, 2026
Links: GitHub  ·  Packagist
Maintainer: mariobodemann

Contentful Laravel Package

Packagist PHP from Packagist Packagist

This library provides an easy-to-use integration between the Laravel framework and the Contentful Delivery SDK. It requires PHP 8.0 and up.

Setup

Add this package to your application by using Composer and executing the following command:

composer require contentful/laravel

Add the service provider to the providers array in config/app.php:

'providers' => [
    Contentful\Laravel\ContentfulServiceProvider::class,
],

Configuration

Publish the config file:

php artisan vendor:publish --provider="Contentful\Laravel\ContentfulServiceProvider"

This will add contentful.php to your /config folder. Next, add your space ID and API key to your .env file:

CONTENTFUL_SPACE_ID="cfexampleapi"
CONTENTFUL_DELIVERY_TOKEN="b4c0n73n7fu1"

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-2019 Contentful GmbH. Code released under the MIT license. See LICENSE for further details.


Documentation & Agent Context

Document What it covers
ARCHITECTURE.md Internal structure, data flow, integration points, configuration reference
CONTRIBUTING.md Development setup, test commands, commit conventions, release process
docs/ADRs/ Why things look the way they do — key decisions documented
AGENTS.md Agent-first context directory — read this first if you're an AI tool
.bito/guidelines/ PR review rules and domain invariants

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

625,281,324 9,703
laravel/framework

The Laravel Framework.

572,249,171 34,893
laravel/tinker

Powerful REPL for the Laravel framework.

481,927,243 7,441