luminarix / laravel-jsonl-parser
A JSON Lines parser for Laravel.
Fund package maintenance!
luminarix
Installs: 1 799
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.3
- illuminate/contracts: ^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.15
- nunomaduro/collision: ^8.1.1
- orchestra/testbench: ^9.0.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
README
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.