Download the PHP package darce/json-model-bundle without Composer
On this page you can find all versions of the php package darce/json-model-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download darce/json-model-bundle
More information about darce/json-model-bundle
Files in darce/json-model-bundle
Download darce/json-model-bundle
More information about darce/json-model-bundle
Files in darce/json-model-bundle
Vendor darce
Package json-model-bundle
Short Description Darce Json to Model Bundle for Symfony
License proprietary
Package json-model-bundle
Short Description Darce Json to Model Bundle for Symfony
License proprietary
Please rate this library. Is it a good library?
Informations about the package json-model-bundle
Json To Model Bundle
Il bundle fornisce la possibilità di auto-generare una struttura di classi a partire da un json. Ogni classe generata conterrà:
- Attributi privati della classe con annotation @var e @JmsSerializer\Type
- Metodi get di ogni attributo generato
Se il json contiene al suo interno degli oggetti il bundle genera automaticamente classi ad hoc anche per quest'ultimi.
Utilizzo
Per auto-generare la struttura di classi il bundle mette a disposizione un Command darce-json-model:make-model che
prende in input 4 possibili argomenti:
- REQUIRED: Json di cui generare le classi
- REQUIRED: Nome della classe "root" da generare
- OPTIONAL: Path relativo in cui generare le classi (di default è 'src/Model/Api')
- OPTIONAL: Namespace in cui devono essere definite le classi (di default è 'App\Model\Api')
Il command prevede anche le seguenti opzioni:
- --strict-type: Aggiunge
declare(strict_types=1);ad ogni classe generata
All versions of json-model-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1.3
ext-ctype Version *
ext-iconv Version *
ext-json Version *
nette/php-generator Version ^3.2
symfony/console Version 4.3.*
symfony/dotenv Version 4.3.*
symfony/filesystem Version 4.3.*
symfony/flex Version ^1.3.1
symfony/framework-bundle Version 4.3.*
symfony/yaml Version 4.3.*
ext-ctype Version *
ext-iconv Version *
ext-json Version *
nette/php-generator Version ^3.2
symfony/console Version 4.3.*
symfony/dotenv Version 4.3.*
symfony/filesystem Version 4.3.*
symfony/flex Version ^1.3.1
symfony/framework-bundle Version 4.3.*
symfony/yaml Version 4.3.*
The package darce/json-model-bundle contains the following files
Loading the files please wait ...