hugo-levet/strapi-php-rich-text-parser

A PHP parser for Strapi Rich Text fields

v1.1.1 2024-09-03 22:10 UTC

This package is auto-updated.

Last update: 2024-11-03 22:30:45 UTC


README

Latest Version Total Downloads Software License

A PHP parser for Strapi Rich Text fields

Usage

Get datas from strapi api in StdClass format and pass it to the parser

use HugoLevet\StrapiPhpRichTextParser\RichTextParser;

$html_content = RichTextParser::jsonToHtml($content);

Environment variables

Make sure to set the environment variable STRAPI_URL with the URL of the Strapi API you are using