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

Choose a tag to compare

@e1himself e1himself released this 16 Sep 08:47
  • Fix composer autoloader complains on stubs file #7
  • Exclude dev files from the deliverable

PHP8 compatibility

Choose a tag to compare

@e1himself e1himself released this 30 Jun 10:14
23b4dc8
  • 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

Choose a tag to compare

@e1himself e1himself released this 23 Mar 15:50

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

Choose a tag to compare

@e1himself e1himself released this 23 Mar 14:19

Now you can serialize ContentState back to JSON.

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

First release

Choose a tag to compare

@e1himself e1himself released this 25 Nov 11:31
1.0

Document PHP 7 requirement