Integrates the Contentful PHP SDK with Laravel.

9.0.2 2024-04-02 18:14 UTC


Packagist PHP from Packagist Packagist 68747470733a2f2f636972636c6563692e636f6d2f67682f636f6e74656e7466756c2f636f6e74656e7466756c2d6c61726176656c2e7376673f7374796c653d736869656c64

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


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


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:


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.


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