PackageTrack
Sign in Get early access

contentful/rich-text

Utilities for the Contentful Rich Text

4.0.3 3.8M downloads/mo #2450 most downloaded on Packagist contentful/rich-text.php

What this package is like to depend on

Last release 9 months ago

18 Nov 2025

Release timing varies

gaps range from 2 weeks to 1.5 years

Nearly every release is documented

notes for 17 of 17 stable releases

Nothing withdrawn

no release was ever pulled

8 years old

22 releases · first in 2018

1 release in the last 12 months

see the full history below

Release timeline

22 releases · Sep 2018 to Nov 2025
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 22
  1. 4.0.3 18 Nov 2025
    Release notes

    Changed

    • Added support for strikethrough mark
    Open source →
    Release notes
    • Added support for strikethrough mark
    Open source →
  2. 4.0.2 03 Jun 2024
    Release notes
    • Fixed a bug where localization was lost on Embedded{Asset,Entry}Block
    • Updated for PHP8.3
    Open source →
    Release notes
    • Fixed a bug where localization was lost on Embedded{Asset,Entry}Block
    • Updated for PHP8.3
    Open source →
  3. v4.0.1 22 Dec 2022
    Release notes

    Added

    • Support for Contentful/Core v4.0.0
    Open source →
    Release notes

    Added

    • Support for Contentful/Core v4.0.0
    Open source →
  4. 4.0.0 22 Dec 2022
    Release notes

    Changed

    • Breaking change: Added locale support to the richtext parser. This avoids bugs when parsing embedded fields using a different locale (see #65). This change changes the ParserInterface and NodeMapperInterface - any implementation using a custom parser or NodeMapper will need to update the entries accordingly. Additionally, the ParserInterface::parse() and ParserInterface::parseCollection() methods have been deprecated in favor of their localized version (ParserInterface::parseLocalized() and ParserInterface::parseCollectionLocalized(), respectively).
    • Breaking change: Dropped support for PHP7.
    • Added the embedded asset to the serialized version of EmbeddedAssetBlock and EmbeddedAssetInline (see #61).
    • Added support for superscript and subscript.

    Internal

    • Overall CI cleanup
    • Added CI tests for PHP8.2
    Open source →
    Release notes

    Changed

    • Breaking change: Added locale support to the richtext parser. This avoids bugs when parsing embedded fields using a different locale (see #65). This change changes the ParserInterface and NodeMapperInterface - any implementation using a custom parser or NodeMapper will need to update the entries accordingly. Additionally, the ParserInterface::parse() and ParserInterface::parseCollection() methods have been deprecated in favor of their localized version (ParserInterface::parseLocalized() and ParserInterface::parseCollectionLocalized(), respectively).
    • Breaking change: Dropped support for PHP7.
    • Added the embedded asset to the serialized version of EmbeddedAssetBlock and EmbeddedAssetInline (see #61).
    • Added support for superscript and subscript.

    Internal

    • Overall CI cleanup
    • Added CI tests for PHP8.2

    <!-- PENDING-CHANGES -->

    No meaningful changes since last release. <!-- /PENDING-CHANGES -->

    Open source →
  5. 3.4.0 17 Jul 2022
    Release notes

    Added

    Internal

    • Updated header comments
    • Added CI tests for PHP8.1
    Open source →
    Release notes

    Added

    • Added support for table-header-cell

    Internal

    • Updated header comments
    • Added CI tests for PHP8.1
    Open source →
  6. 3.3.0 25 Apr 2022
    Release notes

    Added support for rich text tables

    Open source →
    Release notes

    Added

    • Added support for rich-text tables
    Open source →
  7. 3.2.0 20 Mar 2021
    Release notes
    • Added support for PHP8
    • Smaller clean-ups
    Open source →
    Release notes

    Added

    • Added support for PHP8

    Internal

    • Small CI updates
    • Edited source for PHP sami
    Open source →
  8. 3.1.2 10 Sep 2020
    Release notes

    Changed

    • DRY applied for Node/Heading classes by introducing new AbstractClass
    • performance improvements in create-redirector script
    Open source →
    Release notes

    Changed

    • DRY applied for Node/Heading classes by introducing new AbstractClass
    • performance improvements in create-redirector script
    Open source →
  9. 3.1.1 20 Aug 2020
    Release notes

    Changed

    • Node renderers now forward context
    Open source →
    Release notes

    Changed

    • Node renderers now forward context
    Open source →
  10. 3.1.0 08 Apr 2020
    Release notes

    Changed

    Drop MapperException and let the code simply throw the exception in the same form it was raised.

    Open source →
    Release notes

    Changed

    Drop MapperException and let the code simply throw the exception in the same form it was raised.

    Open source →
  11. 3.0.0 03 Mar 2020
    Release notes

    Changed

    Added support for PHP 7.4. Removed support for PHP 7.0 & 7.1. Updated dependencies.

    Open source →
  12. 2.0.0 19 Feb 2020
    Release notes

    Changed

    • Nested references are not fetched recursively upfront, they are now resolved dynamically when used
    • Changed parameters/signatures for EmbeddedEntryBlock, EmbeddedEntryInline, EntryHyperlink,
    • Added EntryReferenceInterface and implementation
    • MapperException not thrown anymore
    Open source →
  13. 1.2.1 26 Nov 2019
    Release notes
    • Fixed documentation
    • Escape html in text values
    Open source →
  14. 1.2.0 31 Oct 2018
    Release notes

    Added

    • The library now supports embedded-entry-inline and embedded-asset-inline nodes.
    Open source →
  15. 1.1.1 30 Oct 2018
    Release notes

    Fixed

    • Configuration constraint for contentful-core.php required strictly version 2.0.0, now it was fixed to allow for all v2 versions.
    Open source →
  16. 1.1.0 30 Oct 2018
    Release notes

    Added

    • Method Parser::setNodeMapper(string $nodeType, NodeMapperInterface $nodeMapper) was added, now it's possible to define custom mappers after the parser's creation.
    Open source →
  17. 1.0.0 25 Oct 2018
    Release notes

    Added

    • Node Nothing has been implemented, which is used as a replacement for when creating other nodes does not succeed (e.g. a link can't be resolved).
    • Node EmbeddedAssetBlock has been implemented.
    Open source →
  18. 1.0.0-beta5 16 Oct 2018 pre-release
    Release notes

    Changed

    • Node AssetHyperlink now expects an object implementing AssetInterface instead of ResourceInterface. [BREAKING]
    • Nodes EmbeddedEntryBlock and EntryHyperlink now expects an object implementing EntryInterface instead of ResourceInterface. [BREAKING]

    Removed

    • Method getNodeClass was removed from NodeInterface. [BREAKING]
    Open source →
  19. 1.0.0-beta4 11 Oct 2018 pre-release
    Release notes

    Changed

    • Node Quote was renamed Blockquote. [BREAKING]
    Open source →
  20. 1.0.0-beta3 11 Oct 2018 pre-release
    Release notes

    Changed

    • The package was renamed from contentful/structured-text-renderer to contentful/rich-text. [BREAKING]
    Open source →
  21. 1.0.0-beta2 26 Sep 2018 pre-release
    Release notes

    Added

    • Node renderer Contentful\StructuredText\NodeRenderer\CatchAll can be used to avoid having the main renderer throw an exception in the event of an unsupported node. Use it like this:
      $renderer = new Contentful\StructuredText\Renderer();
      $renderer->appendNodeRenderer(new Contentful\StructuredText\NodeRenderer\CatchAll());
      
      It's important to use the appendNodeRenderer method to make the main renderer use it as last resort, otherwise, it will intercept all calls to other nodes.
    • NodeInterface now includes method getNodeClass, for exposing whether a node is of type block or inline.
    Open source →
  22. 1.0.0-beta1 13 Sep 2018 pre-release
    Release notes

    Added

    • Initial implementation.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive