contentful / laravel
Integrates the Contentful PHP SDK with Laravel.
Installs: 410 037
Dependents: 1
Suggesters: 0
Security: 0
Stars: 44
Watchers: 32
Forks: 31
Open Issues: 6
Requires
- php: ^8.0
- contentful/contentful: ^7.0.1
- contentful/core: ^4.0
- laravel/framework: ^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^5.1|^6.0
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2024-10-23 15:39:12 UTC
README
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 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.