dev-master
9999999-devHelper for interacting with JSON Lines
Halal
The Requires
The Development Requires
by Mochammad Masbuchin
json jl json lines
Helper for interacting with JSON Lines
Helper for interacting with JSON Lines, (*1)
composer require buchin/jltools
, (*2)
Here is some example. Currently only do one thing: add new field., (*3)
This script will add key and value pair to every line in json file, (*4)
<?php use Buchin\Jltools\Jltools; $jltools = new Jltools; $jltools->setPath('/Path/to/jsonline.jsonl'); $jltools->addField('key', 'value', 'output.jsonl');
If you want to add new feature to this package, please send a pull request. All pull request should come with it’s own test. I currently use [kahlan][1] for my testing purpose., (*5)
Helper for interacting with JSON Lines
Halal
json jl json lines