PHPackages                             json-mapper/laravel-package - 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. json-mapper/laravel-package

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

json-mapper/laravel-package
===========================

The JsonMapper package for Laravel

3.0.0(2mo ago)25199.3k↓55.8%53MITPHPPHP ^7.4 || ^8.0CI passing

Since Apr 27Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/JsonMapper/LaravelPackage)[ Packagist](https://packagist.org/packages/json-mapper/laravel-package)[ RSS](/packages/json-mapper-laravel-package/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (16)Versions (17)Used By (3)

  ![JsonMapper logo](https://camo.githubusercontent.com/92c07bc67e17a28dff56bb1bb24368d6e7deac4d451ea04f9142af7a1954bf89/68747470733a2f2f6a736f6e6d61707065722e6e65742f696d616765732f6a736f6e6d61707065722e706e67)---

**This is a Laravel package for using JsonMapper in you Laravel application.**

JsonMapper is a PHP library that allows you to map a JSON response to your PHP objects that are either annotated using doc blocks or use typed properties. For more information see the project website:

[![GitHub](https://camo.githubusercontent.com/1dd0794458174e378f02296565889e69452c0413b02442f7aff75cb9b42f5e4c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4a736f6e4d61707065722f4c61726176656c5061636b616765)](https://camo.githubusercontent.com/1dd0794458174e378f02296565889e69452c0413b02442f7aff75cb9b42f5e4c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4a736f6e4d61707065722f4c61726176656c5061636b616765)[![Packagist Version](https://camo.githubusercontent.com/5d28a6534346f3758b6ea89f073bd712dc83a21003a5bba052b7701ce038788e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a736f6e2d6d61707065722f6c61726176656c2d7061636b616765)](https://camo.githubusercontent.com/5d28a6534346f3758b6ea89f073bd712dc83a21003a5bba052b7701ce038788e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a736f6e2d6d61707065722f6c61726176656c2d7061636b616765)[![PHP from Packagist](https://camo.githubusercontent.com/2188579d57bb00bc5e400f994e22d90add03ca811c196122513174c6d0d43685/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a736f6e2d6d61707065722f6c61726176656c2d7061636b616765)](https://camo.githubusercontent.com/2188579d57bb00bc5e400f994e22d90add03ca811c196122513174c6d0d43685/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a736f6e2d6d61707065722f6c61726176656c2d7061636b616765)[![Build](https://github.com/JsonMapper/LaravelPackage/workflows/Build/badge.svg?branch=main)](https://github.com/JsonMapper/LaravelPackage/workflows/Build/badge.svg?branch=main)[![Coverage Status](https://camo.githubusercontent.com/f2d7e191cc78be2f1237a44863f25a361527e862becc3e9796d9f310df5dbe80/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a736f6e4d61707065722f4c61726176656c5061636b6167652f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/JsonMapper/LaravelPackage?branch=main)

Why use JsonMapper
==================

[](#why-use-jsonmapper)

Continuously mapping your JSON responses to your own objects becomes tedious and is error prone. Not mentioning the tests that needs to be written for said mapping.

JsonMapper has been build with the most common usages in mind. In order to allow for those edge cases which are not supported by default, it can easily be extended as its core has been designed using middleware.

JsonMapper supports the following features

- Case conversion
- Debugging
- DocBlock annotations
- Final callback
- Namespace resolving
- PHP 7.4 Types properties

Installing JsonMapper laravel package
=====================================

[](#installing-jsonmapper-laravel-package)

The installation of JsonMapper Laravel package can easily be done with [Composer](https://getcomposer.org)

```
$ composer require json-mapper/laravel-package
```

The example shown above assumes that `composer` is on your `$PATH`.

Contributing
============

[](#contributing)

Please refer to [CONTRIBUTING.md](https://github.com/JsonMapper/LaravelPackage/blob/main/CONTRIBUTING.md) for information on how to contribute to JsonMapper Laravel package.

List of Contributors
--------------------

[](#list-of-contributors)

Thanks to everyone who has contributed to JsonMapper Laravel package! You can find a detailed list of people who contributed to JsonMapper on [GitHub](https://github.com/JsonMapper/LaravelPackage/graphs/contributors).

License
=======

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/JsonMapper/LaravelPackage/blob/main/LICENSE) for more information.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance82

Actively maintained with recent releases

Popularity45

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 77.6% 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 ~166 days

Recently: every ~377 days

Total

14

Last Release

89d ago

Major Versions

1.1.3 → 2.0.02021-01-07

2.6.0 → 3.0.02026-04-05

PHP version history (2 changes)1.0.0PHP ^7.2 || ^8.0

3.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/631515718006cc76dcc92e7672b8d2b265888cb6b5268212081cab15de114e92?d=identicon)[danny.vandersluijs](/maintainers/danny.vandersluijs)

---

Top Contributors

[![DannyvdSluijs](https://avatars.githubusercontent.com/u/618940?v=4)](https://github.com/DannyvdSluijs "DannyvdSluijs (45 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![sunil19822701](https://avatars.githubusercontent.com/u/16167103?v=4)](https://github.com/sunil19822701 "sunil19822701 (1 commits)")[![ssatz](https://avatars.githubusercontent.com/u/6892242?v=4)](https://github.com/ssatz "ssatz (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

jsonmiddlewarelaravelmapperjsonmapper

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/json-mapper-laravel-package/health.svg)

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

###  Alternatives

[json-mapper/json-mapper

Map JSON structures to PHP classes

2211.3M32](/packages/json-mapper-json-mapper)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[bmatovu/laravel-xml

Laravel XML Support

91288.2k](/packages/bmatovu-laravel-xml)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6753.8k](/packages/sbsaga-toon)

PHPackages © 2026

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