nsbx/model-builder-bundle

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2023-11-13 18:42 UTC

This package is auto-updated.

Last update: 2024-04-13 19:27:47 UTC


README

Summary

This bundle was created to ease the process of creating JSON objects from external API responses or any JSON that follows a specific model.

With this bundle, you can simply create a model and implement the abstract class "AbstractModelBuilder".

Once your model extends this class, you only need to implement the getMapping() function.

This function should return an Mapping object that describes how to map the JSON data to the model properties.

The Bundle is easy to use and allows efficient processing of JSON data from an API. You can focus on the logic of your application rather than spending time writing code for handling and parsing JSON data from APIs.

If you need example, check the Model folder in the testing section.

Installation

composer require nsbx/model-builder-bundle