emtiazzahid/ndjson

v0.0.1 2021-09-24 09:30 UTC

This package is auto-updated.

Last update: 2024-10-24 20:51:42 UTC


README

Version

Download

composer require emtiazzahid/ndjson

Usage

Decode ndjson

<?php

$decode = \EmtiazZahid\Ndjson\Parser::decode($your_file_path);

Encode ndjson

<?php

$array = [
    ['foo' => 'bar'],
    ['hello' => 'world']
];
$encode = \EmtiazZahid\Ndjson\Parser::encode($array);

Run test

.\vendor\bin\phpunit test/ParserTest

Show your support

Give a ⭐️ if this project helped you!