fyre / make
A collection of commands for generating files.
Requires
- fyre/auth: ^2.0
- fyre/command: ^4.0
- fyre/config: ^3.0
- fyre/console: ^3.0
- fyre/lang: ^3.0
- fyre/loader: ^2.0
- fyre/middleware: ^2.2
- fyre/migration: ^4.0
- fyre/orm: ^8.0
- fyre/path: ^2.0
- fyre/queue: ^2.0
- fyre/view: ^9.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.59
- fyre/filesystem: ^2.0
- fyre/php-cs-fixer-config: ^1.0
- phpunit/phpunit: ^10
README
FyreMake is a free, open-source collection of commands for generating files for FyrePHP.
Table Of Contents
Installation
Using Composer
composer require fyre/make
In PHP:
use Fyre\Command\CommandRunner; CommandRunner::addNamespace('\Fyre\Make\Commands');
Commands
Make Behavior
Generate a new Behavior.
CommandRunner::run('make:behavior', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:behavior Example
Make Cell
Generate a new Cell.
CommandRunner::run('make:cell', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:cell Example
Make Cell Template
Generate a new cell template.
CommandRunner::run('make:cell_template', ['Example.display']);
From the CLI (using FyrePHP).
./bin/fyre make:cell_template Example.display
Make Command
Generate a new Command.
CommandRunner::run('make:command', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:command Example
Make Config
Generate a new Config file.
CommandRunner::run('make:config', ['example']);
From the CLI (using FyrePHP).
./bin/fyre make:config example
Make Controller
Generate a new controller.
CommandRunner::run('make:controller', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:controller Example
Make Element
Generate a new element.
CommandRunner::run('make:element', ['example']);
From the CLI (using FyrePHP).
./bin/fyre make:element example
Make Entity
Generate a new Entity.
CommandRunner::run('make:entity', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:entity Example
Make Helper
Generate a new Helper.
CommandRunner::run('make:helper', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:helper Example
Make Job
Generate a new queue Job.
CommandRunner::run('make:job', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:job Example
Make Lang
Generate a new language file.
CommandRunner::run('make:lang', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:lang Example
Make Layout
Generate a new view layout template.
CommandRunner::run('make:layout', ['default']);
From the CLI (using FyrePHP).
./bin/fyre make:layout default
Make Middleware
Generate a new Middleware.
CommandRunner::run('make:middleware', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:middleware Example
Make Migration
Generate a new Migration.
CommandRunner::run('make:migration');
From the CLI (using FyrePHP).
./bin/fyre make:migration
Make Model
Generate a new Model.
CommandRunner::run('make:model', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:model Example
Make Policy
Generate a new Policy.
CommandRunner::run('make:policy', ['Example']);
From the CLI (using FyrePHP).
./bin/fyre make:policy Example
Make Template
Generate a new view template.
CommandRunner::run('make:template', ['Example.index']);
From the CLI (using FyrePHP).
./bin/fyre make:template Example.index