Registry / serialization / ml-json-ld

ml-json-ld

JSON →
library1.2.1phppackagistunverified

JSON-LD Processor for PHP — parse and serialize JSON-LD documents.

composer require ml/json-ld
INSTALL
IMPORT
SIG · ML-JSON-LD
M
ml-json-ld
serializationphpv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JsonLD
use ML\JsonLD\JsonLD;

Parse a JSON-LD string and access the document IRI.

use ML\JsonLD\JsonLD; $doc = JsonLD::getDocument('{"@context": "http://schema.org", "@type": "Person", "name": "John"}'); echo $doc->getIri();
Debug
Known issues
breakingRequires PHP 7.1+; older versions may not work.
fix
Upgrade PHP to 7.1 or later.
affects: <1.0.0
Upgrade
Version history
1.2.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
ml-json-ld — pip install ml-json-ld · libregistry