generator-werx

Yeoman generator for the werx PHP microframework.

Usage no npm install needed!

<script type="module">
  import generatorWerx from 'https://cdn.skypack.dev/generator-werx';
</script>

README

generator-werx

Yeoman generator for the werx PHP microframework.

What is Yeoman?

Trick question. It's not a thing. It's this guy:

Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.

Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.

npm install -g yo

How do I install this thing?

npm install -g generator-werx

Available Commands

yo werx:crud (Controller Name)

Generates skeleton CRUD including a controller, model, validator and view files.

yo werx:model (Model Name)

Generates an Eloquent model in src/models

yo werx:controller (Controller Name)

Generates a controller in src/controllers

yo werx:console (Console Controller Name)

Generates a console only controller in src/controllers

yo werx:validator (Validator Name)

Generates a validator in src/validators