Skip to content

Releases: prezly/draft-php

Improve release deliverable

16 Sep 08:47
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
1.0

Document PHP 7 requirement