PHP code example of elephentity / codegen-php
1. Go to this page and download the library: Download elephentity/codegen-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
elephentity / codegen-php example snippets
bash
echo '{"elephentity":1,"irVersion":"1.1","target":"php","config":{},
"outputDirectory":"out","schema":{}}' | ./bin/eleph-gen-php
json
{
"targets": {
"php": {
"builder": "vendor/bin/eleph-gen-php",
"output": "generated",
"namespace": "App\\Entity",
"typeNamespace": "App\\Type"
}
}
}