Yummy opinionated PHP generator for web masters.
composer require contributte/crafter --dev
- Create
crafter.neon
in your project root.
You can initialize it by running vendor/bin/crafter init
. Or you can create it manually.
data:
user:
fields:
username: {type: string}
email: {type: string}
password: {type: string}
createdAt: {type: datetime}
updatedAt: {type: datetime}
- Run
vendor/bin/crafter
orphp crafter.phar
in your project root.
vendor/bin/crafter craft
Under construction.
Create crafter.neon
in your project.
Generate files based on crafter.neon
.
You can define:
--data|-k
- data structure key--scope|-s
- scope of generation
vendor/bin/crafter craft -k user
vendor/bin/crafter craft -k user -s database
Generate whole project based on template.
You can define:
--template|-t
- project template--directory|-d
- output folder
vendor/bin/crafter generate -t nella -d demo