https://github.com/contentful/contentful-laravel
Laravel integration for the Contentful SDK.
https://github.com/contentful/contentful-laravel
Last synced: 3 months ago
JSON representation
Laravel integration for the Contentful SDK.
- Host: GitHub
- URL: https://github.com/contentful/contentful-laravel
- Owner: contentful
- License: mit
- Created: 2016-07-11T11:55:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2025-05-07T23:44:35.000Z (about 1 year ago)
- Last Synced: 2025-05-08T00:29:06.130Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 269 KB
- Stars: 44
- Watchers: 32
- Forks: 31
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Contentful Laravel Package
[](https://packagist.org/packages/contentful/laravel)
[](https://packagist.org/packages/contentful/laravel)
[](https://packagist.org/packages/contentful/laravel)

> 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](https://getcomposer.org/) and executing the following command:
``` bash
composer require contentful/laravel
```
Add the service provider to the `providers` array in `config/app.php`:
``` php
'providers' => [
Contentful\Laravel\ContentfulServiceProvider::class,
],
```
## Configuration
Publish the config file:
``` sh
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](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
Copyright (c) 2015-2019 Contentful GmbH. Code released under the MIT license. See [LICENSE](LICENSE) for further details.