Download the PHP package distilleries/contentful without Composer

On this page you can find all versions of the php package distilleries/contentful. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contentful

Build Status Scrutinizer Code Quality Code Coverage Total Downloads Latest Stable Version

Distilleries / Laravel-Contentful-Utilities

Laravel-Contentful-Utilities is a Laravel 5.6 - 5.8 / Lumen package 5.6 - 5.8 package to use contentful in offline mode with and without preview. Contentful is a headless CMS in cloud you can have more information on their website https://www.contentful.com

Features

Installation

Composer

Install the [composer package] by running the following command:

composer require distilleries/contentful

Models and Mapper

When we synchronize all the data on database the mapper link to the model are call. This mapper car provide the extract of field you would like one the database. For example you want to externalize the title and the slug on the database you have to change the migration generated and the mapper.

All the model generated have a getters for all the payload fields. If you want to externalize the field on database.

Command-line tools

To make model and mapper from contentful

:information_source: Models are generated on app_path('Models'); and the mappers are generated on app_path('Models/Mappers');

To make migration from contentful model

To launch the synchronisation you can use this command line

:information_source: --preview is optional and use if you want to flatten the preview database.

Command Explain
sync-data Get all the entries from contentful and put in the flatten database
sync-flatten Get all the entries from data table to explode on all the other types

Webhook

To flatten the preview or the regular database you need to set the webhook on Contentful

Create a controller and use the trait:

use \Distilleries\Contentful\Http\Controllers\WebhookTrait;

Make the route callable in post:

To display the site with preview database you have to use UsePreview middleware.

Add your middleware:


All versions of contentful with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.3
ext-json Version *
contentful/contentful Version ^4.1
erusev/parsedown Version ^1.7
guzzlehttp/guzzle Version ^6.3
illuminate/support Version ~5.6|~5.7|~5.8|^6.0
illuminate/database Version ~5.6|~5.7|~5.8|^6.0
illuminate/cache Version ~5.6|~5.7|~5.8|^6.0
jenssegers/agent Version ^2.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package distilleries/contentful contains the following files

Loading the files please wait ....