Download the PHP package fond-of-spryker/contentful without Composer

On this page you can find all versions of the php package fond-of-spryker/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

fond-of-spryker/contentful

license

A Spryker-Contentful connector. Import content from contentful to storage and updates it via cronjob.

Install

1. Add twig service provider to YvesBootstrap.php in registerServiceProviders()

2. Add ContentfulRouter to YvesBootstrap.php in registerRouters()

3. Add console command to ConsoleDependencyProvider.php in getConsoleCommands()

4. Add configs to your shop config file or in config/Shared/config_default.php

Example configuration

5. Add cronjob in jobs.php

Retrieve updated contentful entries every 5min.

6. Run

Console commands

Import last updated entries (last 5min)

Import all

Import entry by id

Usage in twig templates

Template path is Theme/default/contentful/[contentType].twig

Access contentful properties in twig templates like the following example:

Markdown to html

Image resize

Fields

Text (Default)

Boolean

Asset

Array

Reference

Object (Json)


{{ entry.[assetFieldName].type }} // 'Object'
{{ entry.[assetFieldName].value }} // ContentfulEntryId

# Pages
- If the contentful entry has a "Indentifier" field (URL) it will be imported as page with the given route via IdentifierImporterPlugin.
- Add an additional ResourceCreator to add custom logic to a special contentful entry type.
- More documentation soon

All versions of contentful with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
aptoma/twig-markdown Version 2.0.0
contentful/contentful Version ^6.0.0
michelf/php-markdown Version 1.9
spryker/category-storage Version ^2.4
spryker/event-behavior Version ^1.24
spryker/key-builder Version ^1.1
spryker/locale Version ^3.3.0
spryker/storage Version ^3.14.0
spryker/store Version ^1.12.1
spryker/twig Version ^3.8.2
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 fond-of-spryker/contentful contains the following files

Loading the files please wait ....