2017 © Pedro Peláez
 

library blacksmith

A CLI command structure for your php processes

image

eaperezc/blacksmith

A CLI command structure for your php processes

  • Sunday, January 15, 2017
  • by eaperezc
  • Repository
  • 3 Watchers
  • 2 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Blacksmith

CircleCI, (*1)

To see the full documentation of the library please go to: Blacksmith Documentation Page, (*2)

PHP Command Line Interface helper library, (*3)

This library is intended to help developer to create easily CLI commands using php. It is based on the laravel artisan command but totally independent from it., (*4)

This is how the terminal looks when you run:, (*5)

```{r, engine='bash', count_lines} php blacksmith help, (*6)


![Alt text](/resources/sc_blacksmith_help.png?raw=true "Blacksmith Help") ## Creating a Command To create a new command, just run: ```bash php blacksmith make:cmd hooray

This will create a file in your-project/commands/Hooray.php. If the /commands directory does not yet exist at the time of creating your first command, Blacksmith will automatically generate it for you., (*7)

Organizing Commands

We recommend organizing your commands into subdirectories to keep better track of which command does what. Fortunately, this is easy to do with Blacksmith. To generate a command into a subdirectory just provide the desired path you would like the command to reside in:, (*8)

php blacksmith make:cmd path/to/hooray

This will generate a file in the following location:, (*9)

your-project/commands/path/to/Hooray.php

Even if the subdirectories you specified don't exist, they will be created automatically by Blacksmith. The ending path node hooray is considered the command and is where you'll be able to add your command logic., (*10)

The Versions

15/01 2017

dev-master

9999999-dev

A CLI command structure for your php processes

  Sources   Download

MIT

The Development Requires

by Enrique Perez

11/12 2016

v0.0.1

0.0.1.0

A CLI command structure for your php processes

  Sources   Download

MIT

The Development Requires

by Enrique Perez