laravel-jsonl-parser maintained by luminarix
Description
A JSON Lines parser for Laravel.
Author
Last update
2026/04/20 08:58
(dev-dependabot/github_actions/dependabot/fetch-metadata-3.1.0)
License
Downloads
6 699
Tags
A JSON Lines parser for Laravel.
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.