PHPackages                             carsdotcom/laravel-json-model - 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. carsdotcom/laravel-json-model

ActiveLibrary

carsdotcom/laravel-json-model
=============================

Laravel models backed by JSON data

v1.4.5(2mo ago)125.1k↓30.4%1[4 issues](https://github.com/carsdotcom/laravel-json-model/issues)MITPHPPHP ^8.1CI passing

Since Jul 12Pushed 2mo ago17 watchersCompare

[ Source](https://github.com/carsdotcom/laravel-json-model)[ Packagist](https://packagist.org/packages/carsdotcom/laravel-json-model)[ RSS](/packages/carsdotcom-laravel-json-model/feed)WikiDiscussions development Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (26)Used By (0)

Laravel Json Model
==================

[](#laravel-json-model)

We really love Laravel as an ORM. But we have a part of our application that persists to a document store, not a relational database. Json Models let us use the best parts of the Eloquent Models, but instead of being backed by a row in a table, they're always serialized to JSON. (Which can include being serialized to an attribute on a traditional Laravel Model!)

Setup
-----

[](#setup)

For now, you will need to add the following for events to work properly.

1. In AppServiceProvider boot method: `JsonModel::setEventDispatcher($this->app['events']);`
2. In AppServiceProvider register method: `JsonModel::clearBootedModels();`

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance68

Regular maintenance activity

Popularity30

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 58.1% 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 ~81 days

Recently: every ~52 days

Total

13

Last Release

62d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/9c6c9dd822416d8cec97ed1b44d5f943aeb39b1adf2980cb819fc111c5cfaa61?d=identicon)[bbene](/maintainers/bbene)

---

Top Contributors

[![jwadhams](https://avatars.githubusercontent.com/u/1613739?v=4)](https://github.com/jwadhams "jwadhams (25 commits)")[![bbene](https://avatars.githubusercontent.com/u/502853?v=4)](https://github.com/bbene "bbene (10 commits)")[![mattwills23](https://avatars.githubusercontent.com/u/26020585?v=4)](https://github.com/mattwills23 "mattwills23 (4 commits)")[![skybluesofa](https://avatars.githubusercontent.com/u/1657128?v=4)](https://github.com/skybluesofa "skybluesofa (3 commits)")[![czedonis](https://avatars.githubusercontent.com/u/5823584?v=4)](https://github.com/czedonis "czedonis (1 commits)")

---

Tags

laravellibrary

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/carsdotcom-laravel-json-model/health.svg)

```
[![Health](https://phpackages.com/badges/carsdotcom-laravel-json-model/health.svg)](https://phpackages.com/packages/carsdotcom-laravel-json-model)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11120.2M21](/packages/anourvalar-eloquent-serialize)[carsdotcom/laravel-json-schema

Json Schema validation for Laravel projects

1036.7k3](/packages/carsdotcom-laravel-json-schema)

PHPackages © 2026

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