Generates standard code for wtf modules.
Can generate following:
- Entity
- Controller
- Migration
- Seed
- Route
- Test
- CRUD (Controller, Entity, Migration, Route, Test with selected name in one command)
Place generator.php
into any place
<?php
$app = dirname(__DIR__).'/';
return [
'paths' => [
'app' => $app,
'controller' => $app.'src/Controller/',
'entity' => $app.'src/Entity/',
'test' => $app.'tests/',
'route' => $app.'config/routes/',
],
];
Run generator with: bin/wtf generate:crud hello -c /path/to/generator-config.php
- Generator is experiment project (yet)