lostfocus / jf2
Basic mapping and handling of jf2 files and objects
0.4.0
2024-02-03 12:02 UTC
Requires
- php: 8.2.*|8.3.*
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: >=11.0
README
A small-ish collection of classes to map/serialize JF2-Json files to typed objects
and back. This is a pretty early version and is likely to break at any
time.
If you do want to use it, please specify at least the minor version in your composer.json
Test JF2 files taken from here.
Install
Via Composer
$ composer require lostfocus/jf2
Usage
$entry = new Lostfocus\Jf2\Utility\Entry(); $entry->setUrl('https://example.com'); echo json_encode($entry, JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR);
Testing
$ composer test
License
The MIT License (MIT). Please see License File for more information.