Releases: prezly/draft-php
Releases · prezly/draft-php
Improve release deliverable
PHP8 compatibility
- 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
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
Now you can serialize ContentState back to JSON.
/** @var $json string */
$json = \Prezly\DraftPhp\Serializer::serialize($contentState);
First release
1.0 Document PHP 7 requirement