Skip to content

emtiazzahid/php-ndjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to ndjson 👋

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!