Download the PHP package alisson-nascimento/json2class without Composer
On this page you can find all versions of the php package alisson-nascimento/json2class. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alisson-nascimento/json2class
More information about alisson-nascimento/json2class
Files in alisson-nascimento/json2class
Download alisson-nascimento/json2class
More information about alisson-nascimento/json2class
Files in alisson-nascimento/json2class
Please rate this library. Is it a good library?
Informations about the package json2class
Json2Class
JSON parse to Classes
Installation
composer require alisson-nascimento/json2class
Example 1: Create Classes .php
use AlissonNascimento\Json2Class\Json2Class;
$json2Class = (new Json2Class())->setNamespace("AlissonNascimento\Json2Class\Response\Message")
->setOutputFolder("../src/Response")
->setProjeto("MessageResponse")
->setJsonFromFile('../files/model.json');
$json2Class->generateClasses();
MessageResponse class will already be able to be instantiated directly by a json
Example 2: Set Parse Trait
class MessageResponse
{
use \AlissonNascimento\Json2Class\Traits\ParseTrait;
}
Example 3: Instantiate Classes .php
$response = new AlissonNascimento\Json2Class\Response\MessageResponse();
$response->setJsonFromFile('../files/data2.json');
$response->parse();
All versions of json2class with dependencies
PHP Build Version
Package Version
The package alisson-nascimento/json2class contains the following files
Loading the files please wait ....