Rich Text.php

screenshot of Rich Text.php

Utilities for the Contentful Rich Text

Overview

This library is built to assist with the parsing and rendering of the rich text field type in Contentful. It supports PHP 7.2 and up or PHP 8.0 and up.

Features

  • Parsing of rich text data structures
  • Automatic resolution of linked assets and entries
  • Navigating through the hierarchy of node types
  • Automated rendering of nodes
  • Customization of output through node renderers
  • Integration with Twig and Plates templating engines

Summary

The contentful/rich-text-php library provides a convenient way to parse and render rich text data structures in Contentful. It supports automatic resolution of linked assets and entries and allows for easy customization of the output through node renderers. It also integrates with popular templating engines such as Twig and Plates. Overall, the library provides a powerful toolset for working with rich text fields in Contentful.