fyre/make

A collection of commands for generating files.

v1.1.0 2024-10-18 04:57 UTC

This package is auto-updated.

Last update: 2024-10-18 04:58:28 UTC


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