PHPackages                             lostfocus/jf2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lostfocus/jf2

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lostfocus/jf2
=============

Basic mapping and handling of jf2 files and objects

0.4.0(2y ago)131MITPHPPHP 8.2.\*|8.3.\*CI failing

Since May 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lostfocus/jf2)[ Packagist](https://packagist.org/packages/lostfocus/jf2)[ Docs](https://github.com/lostfocus/jf2)[ RSS](/packages/lostfocus-jf2/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

lostfocus/jf2
=============

[](#lostfocusjf2)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0c435e9bc4b96d273f0549665febfc79e3baee1a5163f55ca2559156b08de45a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f7374666f6375732f6a66322e737667)](https://packagist.org/packages/lostfocus/jf2)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](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](https://www.w3.org/TR/jf2/)

[Test JF2 files taken from here.](https://github.com/dissolve/jf2_validator)

Install
-------

[](#install)

Via Composer

```
$ composer require lostfocus/jf2
```

Usage
-----

[](#usage)

```
$entry = new Lostfocus\Jf2\Utility\Entry();
$entry->setUrl('https://example.com');
echo json_encode($entry, JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR);
```

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~212 days

Total

4

Last Release

835d ago

PHP version history (2 changes)0.0.1PHP 8.0.\*|8.1.\*

0.4.0PHP 8.2.\*|8.3.\*

### Community

Maintainers

![](https://www.gravatar.com/avatar/76531533d4ec8ef6b40757c24312a15f261e972240a60da68e254d4cd80d2e34?d=identicon)[lostfocus](/maintainers/lostfocus)

---

Top Contributors

[![lostfocus](https://avatars.githubusercontent.com/u/45055?v=4)](https://github.com/lostfocus "lostfocus (52 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lostfocus-jf2/health.svg)

```
[![Health](https://phpackages.com/badges/lostfocus-jf2/health.svg)](https://phpackages.com/packages/lostfocus-jf2)
```

###  Alternatives

[symfony/polyfill-iconv

Symfony polyfill for the Iconv extension

1.8k352.7M84](/packages/symfony-polyfill-iconv)[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M339](/packages/yajra-laravel-datatables-oracle)[nicmart/tree

A basic but flexible php tree data structure and a fluent tree builder implementation.

57719.3M21](/packages/nicmart-tree)[kiwicommerce/module-inventory-log

Magento 2 - Inventory Log

3735.6k](/packages/kiwicommerce-module-inventory-log)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
