Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Releases: prezly/draft-php

Improve release deliverable

16 Sep 08:47

Choose a tag to compare

  • Fix composer autoloader complains on stubs file #7
  • Exclude dev files from the deliverable

PHP8 compatibility

30 Jun 10:14
23b4dc8

Choose a tag to compare

  • Add PHP8 compatibility (thanks @aperret-dcs): #4 #5
  • Code-style tweaks #6
  • Implement auto-tests with GitHub Actions
  • Improvements to composer.json

ContentState is now JsonSerializable

23 Mar 15:50

Choose a tag to compare

ContentState is now JsonSerializable

Now you can json_encode it directly:

/** @var $contentState \Prezly\DraftPhp\Model\ContentState */

// Convert $contentState to JSON string
echo json_encode($contentState);

ContentState to JSON serializer

23 Mar 14:19

Choose a tag to compare

Now you can serialize ContentState back to JSON.

/** @var $json string */
$json = \Prezly\DraftPhp\Serializer::serialize($contentState);

First release

25 Nov 11:31

Choose a tag to compare

1.0

Document PHP 7 requirement