matthiaskrieft / ContentfulBundle

Symfony Bundle for the Contentful SDK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ContentfulBundle

Build Status

Symfony Bundle for the Contentful 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.

This Bundle requires at least PHP 5.5.9 and Symfony 2.7. PHP 7 and Symfony 3 are supported.

The SDK is currently in beta. The API might change at any time.

Setup

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

php composer.phar require contentful/contentful-bundle:@beta

Add ContentfulBundle to your application kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Contentful\ContentfulBundle\ContentfulBundle(),
        // ...
    );
}

Configuration example

The simplest configuration includes just the space ID and token:

contentful:
  delivery:
    space: cfexampleapi
    token: b4c0n73n7fu1

You can also configure multiple clients and enable the preview mode:

contentful:
  delivery:
    default_client: exampleapi
    clients:
      exampleapi:
        space: cfexampleapi
        token: b4c0n73n7fu1
      exapleapi_preview:
        space: cfexampleapi
        token: b4c0n73n7fu1
        preview: true

Documentation

Getting Started Tutorial

License

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

About

Symfony Bundle for the Contentful SDK.

License:MIT License


Languages

Language:PHP 71.3%Language:HTML 28.7%