PHP code example of tkzo / huge-json-collection-streaming-parser

1. Go to this page and download the library: Download tkzo/huge-json-collection-streaming-parser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tkzo / huge-json-collection-streaming-parser example snippets


$filePath = 'path/to/huge-json-file.json';

$parser = new \HugeJsonCollectionStreamingParser\Parser($filePath);

while ($parser->next()) {
    $item = $parser->current();

    // do anything...
}