Yummy opinionated PHP generator for web masters.
composer require contributte/mate --dev
- Create
.mate.neon
in your project root.
You can initialize it by running vendor/bin/mate init
. Or you can create it manually.
data:
user:
fields:
username: {type: string}
email: {type: string}
password: {type: string}
createdAt: {type: Nette\Utils\DateTime}
updatedAt: {type: Nette\Utils\DateTime}
- Run
vendor/bin/mate
orphp mate.phar
in your project root.
vendor/bin/mate craft
Under construction.
Create .mate.neon
in your project.
Generate files based on .mate.neon
.
vendor/bin/mate craft --struct user
vendor/bin/mate craft --struct user --crafter=entity
vendor/bin/mate craft --struct user --crafter=repository
vendor/bin/mate craft --struct user --crafter=bus --mode=create
vendor/bin/mate craft --struct user --crafter=bus --mode=update
vendor/bin/mate craft --struct user --crafter=bus --mode=delete
vendor/bin/mate craft --struct user --crafter=bus --mode=list
vendor/bin/mate craft --struct user --crafter=bus --mode=get
vendor/bin/mate craft --struct user --crafter=api --mode=create
vendor/bin/mate craft --struct user --crafter=api --mode=update
vendor/bin/mate craft --struct user --crafter=api --mode=delete
vendor/bin/mate craft --struct user --crafter=api --mode=list
vendor/bin/mate craft --struct user --crafter=api --mode=get
Generate whole project based on .mate.neon
.
vendor/bin/mate generate --template api