Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.37 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.37 KB

Contentful Laravel Package

Build Status

Laravel package for the Contentful CDA SDK.

Contentful is a content management platform for web applications, mobile apps and connected devices. It allows you to create, edit & manage content in the cloud and publish it anywhere via powerful API. Contentful offers tools for managing editorial teams and enabling cooperation between organizations.

The SDK requires at least PHP 5.6. PHP 7 is supported.

Setup

To add this package to your composer.json and install it execute the following command:

php 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"

License

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