Basic mapping and handling of jf2 files and objects

0.4.0 2024-02-03 12:02 UTC

This package is auto-updated.

Last update: 2024-11-18 07:47:18 UTC


README

Latest Version on Packagist Software License

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

More infos on JF2

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.