contentful / contentful-laravel by mariobodemann

Integrates the Contentful PHP SDK with Laravel.
66,995
33
45
Package Data
Maintainer Username: mariobodemann
Package Create Date: 2016-07-11
Package Last Update: 2020-05-14
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2020-05-22 15:06:13
Package Statistics
Total Downloads: 66,995
Monthly Downloads: 2,497
Daily Downloads: 74
Total Stars: 33
Total Watchers: 45
Total Forks: 17
Total Open Issues: 0

Contentful Laravel Package

Packagist PHP from Packagist CircleCI branch Packagist

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

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.