PHPackages                             luminarix/laravel-jsonl-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. luminarix/laravel-jsonl-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

luminarix/laravel-jsonl-parser
==============================

A JSON Lines parser for Laravel.

v1.1.1(1y ago)35.8k—8.8%[3 PRs](https://github.com/luminarix/laravel-jsonl-parser/pulls)MITPHPPHP ^8.3CI passing

Since May 1Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/luminarix/laravel-jsonl-parser)[ Packagist](https://packagist.org/packages/luminarix/laravel-jsonl-parser)[ Docs](https://github.com/luminarix/laravel-jsonl-parser)[ GitHub Sponsors](https://github.com/luminarix)[ RSS](/packages/luminarix-laravel-jsonl-parser/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (9)Used By (0)

A JSON Lines parser for Laravel.
================================

[](#a-json-lines-parser-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/993bc0b438c235ebe183bdbe0cbf63f03c9f3eb5de23345d9f7e27d79d58f5c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756d696e617269782f6c61726176656c2d6a736f6e6c2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/luminarix/laravel-jsonl-parser)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e636a1e8856280c83f5d1d90bbb50179ab1570e726dc52d7168b383eef8a410a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e617269782f6c61726176656c2d6a736f6e6c2d7061727365722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/luminarix/laravel-jsonl-parser/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ce599274765a7fa014cb3f64b76f2c4cc9b89de400d70d37e81b5eefb4ad9b73/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756d696e617269782f6c61726176656c2d6a736f6e6c2d7061727365722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/luminarix/laravel-jsonl-parser/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ac1112e79dbc36f84080ba7ea409051f1bfe4f2a078e2ce1dce86661ee40ac7e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756d696e617269782f6c61726176656c2d6a736f6e6c2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/luminarix/laravel-jsonl-parser)

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

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require luminarix/laravel-jsonl-parser
```

Usage
-----

[](#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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Luminarix Labs](https://github.com/luminarix)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance68

Regular maintenance activity

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~75 days

Total

5

Last Release

448d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb808569841214f1b6b59dca08b367015cdfbcf9826397f20db1efd3439e71bd?d=identicon)[xHeaven](/maintainers/xHeaven)

---

Top Contributors

[![xHeaven](https://avatars.githubusercontent.com/u/14284867?v=4)](https://github.com/xHeaven "xHeaven (24 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelLuminarix Labslaravel-jsonl-parser

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/luminarix-laravel-jsonl-parser/health.svg)

```
[![Health](https://phpackages.com/badges/luminarix-laravel-jsonl-parser/health.svg)](https://phpackages.com/packages/luminarix-laravel-jsonl-parser)
```

###  Alternatives

[spatie/laravel-markdown

A highly configurable markdown renderer and Blade component for Laravel

4053.4M35](/packages/spatie-laravel-markdown)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-markdown-response

Serve markdown versions of your HTML pages to AI agents and bots

6512.6k](/packages/spatie-laravel-markdown-response)[rajentrivedi/tokenizer-x

TokenizerX calculates required tokens for given prompt

91214.0k3](/packages/rajentrivedi-tokenizer-x)[prezet/prezet

Prezet: Markdown Blogging for Laravel

2969.8k2](/packages/prezet-prezet)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
