generator-php-scaffold v3.0.0
Project
This project is a code generator for the Zend Framework or Symfony, to generate the project skeleton the Resful architecture was used and the following packages are used to create the backend:
- zend expressive / Symfony
- doctrine / doctrine-module-0,10
- doctrine / doctrine-module 1.1
In creating the frontend was used Angular 7 together as the Material Design the link to the layout can be found here:
What the php-scaffold do?
When started the php-scaffold generator suggests creating a project or pointing to an existing project, after that you can create your Modules and their Entities, and all the necessary files for the application to work will be created as based on the data provided.
Instalation
You need to install Yeoman and the generator. Yeoman and generator installation is required with the following commands:
npm i -g yonpm i -g generator-php-scaffoldUsage
To use the generator you must enter the folder where you want the application to be created.
cd ~/Documents/my_workspaceTo start the generator execution the following command must be executed.
yo php-scaffoldAfter the construction of the application structure for the creation of entities simply access the folder defined for the project and rerun the call to the generator.
cd ~/Documents/my_workspace/my_projectyo php-scaffoldTo Run the application yo need to execute the line command following.
sudo docker-compose up -dRunner the following line command to update the database
sudo docker exec -it app bashSymfony: php bin/console doctrine:schema:update --force
Expressive: php vendor/bin/doctrine orm:schema-tool:update --forceObs. You need to execute composer install and npm install to install dependencies Obs. To import the jdl files you need first convert to JSON file
npm install -g generator-jhipsterjhipster import-jdl ./data/my-jdl-file.jdl --json-only