davidhoeck/laravel-jsonmapper

Map JSON Responses to PHP Models

v1.1.0 2021-05-05 09:01 UTC

This package is auto-updated.

Last update: 2024-11-13 10:55:26 UTC


README

Latest Stable Version Total Downloads License Monthly Downloads

Map any JSON String on to your PHP Objects. Tested with Laravel, but basically working with every PHP Framework that supports namespaces.

This Plugin is based on the project from @cweiske. I added support primary for the Laravel Framework and I will also develope additional features, especially for the Laravel Framework.

Installation

Via your terminal Paste the following line in your terminal and press enter.

composer require davidhoeck/laravel-jsonmapper

Via your composer.json file

Add the following line to your composer.json at the "require" section.

"davidhoeck/laravel-jsonmapper" : "^1.0.0"

Usage

Read the documentation from @cweiske in his project here

As are developing more features,