PHPackages                             scf/simple-command-factory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. scf/simple-command-factory

ActiveProject[Framework](/categories/framework)

scf/simple-command-factory
==========================

The Simple Command Factory.

1.0.2(5y ago)34[1 PRs](https://github.com/joshuaGlass808/simple-command-factory/pulls)MITPHPPHP ^7.4CI failing

Since Jun 9Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/joshuaGlass808/simple-command-factory)[ Packagist](https://packagist.org/packages/scf/simple-command-factory)[ Docs](https://github.com/joshuaGlass808/simple-command-factory)[ RSS](/packages/scf-simple-command-factory/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (2)Versions (9)Used By (0)

[![Build](https://github.com/joshuaGlass808/simple-command-factory/workflows/Build/badge.svg)](https://github.com/joshuaGlass808/simple-command-factory/workflows/Build/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/8ae8793e50242c8942343c377113c8700c8ac8048a3a037df31b65a5526e5f75/68747470733a2f2f706f7365722e707567782e6f72672f7363662f73696d706c652d636f6d6d616e642d666163746f72792f76)](//packagist.org/packages/scf/simple-command-factory)[![License](https://camo.githubusercontent.com/f06f419ec4cad26fe0b117a8bdb9cbb19c22bd53f6bbdd7c527888ccd5a4f704/68747470733a2f2f706f7365722e707567782e6f72672f7363662f73696d706c652d636f6d6d616e642d666163746f72792f6c6963656e7365)](//packagist.org/packages/scf/simple-command-factory)[![Total Downloads](https://camo.githubusercontent.com/a6ef3610aa54b716878b9d461d6147c2550cc124d7da67eeb2306d342b0116e0/68747470733a2f2f706f7365722e707567782e6f72672f7363662f73696d706c652d636f6d6d616e642d666163746f72792f646f776e6c6f616473)](//packagist.org/packages/scf/simple-command-factory)

Simple Command Factory
======================

[](#simple-command-factory)

scf is a simple, small, lightweight command factory. It comes with a command to help boilerplate the creation of more commands, and enough features to get more small tasks completed. Feel free to create issues / contribute!.

### Quick Highlight

[](#quick-highlight)

- I am using this in some current home projects I work on, so I will make sure to maintain package stablility starting at v1.0.0
- This was inspired by Laravels Artisan command and the Symfony Command line packages as well.

Install:
--------

[](#install)

```
# composer create-project scf/simple-command-factory
composer create-project scf/simple-command-factory simple-command-factory
# or
git clone https://github.com/joshuaGlass808/simple-command-factory.git

cd simple-command-factory/
composer install
```

After that, feel free to start creating commands:

```
./scf create:command --command-name='ExampleCommand' --signature='print:message'
# or
php scf create:command --command-name='ExampleCommand' --signature='print:message'
```

Running the command above will result in this output:

```
Building file: simple-command-factory/app/Commands/ExampleCommand.php
New class (test) create: simple-command-factory/app/Commands/ExampleCommand.php
Don't forget to add ExampleCommand to the App/Kernel class.
```

Which creates a file like this:

```
