Just put in a few solid hours working on https://github.com/indieweb/php-mf2/ — it’s now at v0.1.6 and has preliminary support for the microformats-2 canonical JSON representation. As always it is installable via composer via "mf2/mf2": "0.1.*"