GithubHelp home page GithubHelp logo

jsonmapper / eloquentmiddleware Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 28 KB

Map nested JSON structures to Eloquent Models

Home Page: https://jsonmapper.net

License: MIT License

PHP 100.00%
php middelware json mapping mapper hydration jsonmapper

eloquentmiddleware's Introduction

Logo


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: https://jsonmapper.net

GitHub Packagist Version PHP from Packagist Build Status Coverage Status

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 Eloquent Middleware

The installation of JsonMapper Eloquent Middleware can easily be done with Composer

$ composer require json-mapper/eloquent-middleware

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

Contributing

Please refer to CONTRIBUTING.md for information on how to contribute to JsonMapper Eloquent Middleware.

List of Contributors

Thanks to everyone who has contributed to JsonMapper Eloquent Middleware! You can find a detailed list of contributors of JsonMapper on GitHub.

License

The MIT License (MIT). Please see License File for more information.

eloquentmiddleware's People

Contributors

dannyvdsluijs avatar

Watchers

 avatar  avatar

Forkers

ralphlagumen

eloquentmiddleware's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.