emtiazzahid / ndjson
php parse ndjson
v0.0.1
2021-09-24 09:30 UTC
Requires
- php: ^7.1
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-10-24 20:51:42 UTC
README
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!