PHPackages                             dealnews/datocms-html-to-structured-text - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. dealnews/datocms-html-to-structured-text

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

dealnews/datocms-html-to-structured-text
========================================

Convert HTML to DatoCMS Structured Text (DAST) format

0.1.0(4mo ago)0750BSD-3-ClausePHPPHP ^8.2CI passing

Since Feb 23Pushed 2mo agoCompare

[ Source](https://github.com/dealnews/datocms-html-to-structured-text)[ Packagist](https://packagist.org/packages/dealnews/datocms-html-to-structured-text)[ RSS](/packages/dealnews-datocms-html-to-structured-text/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

DatoCMS HTML to Structured Text (PHP)
=====================================

[](#datocms-html-to-structured-text-php)

Convert HTML to DatoCMS Structured Text (DAST format). PHP port of the [official JavaScript library](https://github.com/datocms/structured-text/tree/main/packages/html-to-structured-text).

Requirements
------------

[](#requirements)

- **PHP 8.2+**
- DOM extension
- libxml extension
- Composer

Installation
------------

[](#installation)

```
composer require dealnews/datocms-html-to-structured-text
```

Basic Usage
-----------

[](#basic-usage)

```
