luminarix/laravel-jsonl-parser

A JSON Lines parser for Laravel.
7,890 3
Install
composer require luminarix/laravel-jsonl-parser
Latest Version:v1.1.1
PHP:^8.3
Laravel:11 · 12
License:MIT
Last Updated:Apr 20, 2026
Links: GitHub  ·  Packagist
Maintainer: xHeaven

A JSON Lines parser for Laravel.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require luminarix/laravel-jsonl-parser

Usage

use Luminarix\JSONL\Facades\JSONL;

$filePath = "path/to/file.jsonl";

JSONL::parse(string $filePath): LazyCollection
JSONL::parseToDto(string $filePath, string $dtoClass): LazyCollection
JSONL::encode(array|Collection|LazyCollection $objects): string
JSONL::encodeFromDto(array|Collection|LazyCollection $dtos): string
JSONL::write(string $filePath, array|Collection|LazyCollection $objects, bool $lock = false): void
JSONL::writeFromDto(string $filePath, array|Collection|LazyCollection $dtos, bool $lock = false): void

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

luminarix/iconscoop

IconScoop - find your favicons

2,876 0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700

Version History

Version Released PHP Laravel License
v1.1.1 ^8.3 ^11.0|^12.0 MIT
v1.1.0 ^8.3 ^11.0 MIT
v1.0.2 ^8.3 ^11.0 MIT
1.0.1 ^8.3 ^11.0 MIT
1.0 ^8.3 ^11.0 MIT