2017 © Pedro Peláez
 

library jltools

Helper for interacting with JSON Lines

image

buchin/jltools

Helper for interacting with JSON Lines

  • Wednesday, November 9, 2016
  • by buchin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

jltools

Helper for interacting with JSON Lines, (*1)

Installation

composer require buchin/jltools, (*2)

Example

Here is some example. Currently only do one thing: add new field., (*3)

Add new field

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');

Pull Request

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)

The Versions

09/11 2016

dev-master

9999999-dev

Helper for interacting with JSON Lines

  Sources   Download

Halal

The Requires

 

The Development Requires

by Mochammad Masbuchin

json jl json lines