2017 © Pedro Peláez
 

library clitool-boilerplate

The command line tool.

image

jaceju/clitool-boilerplate

The command line tool.

  • Monday, July 27, 2015
  • by jaceju
  • Repository
  • 1 Watchers
  • 8 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

CLITool Boilerplate

Simple boilerplate for build your command line tool., (*1)

Requirement

  • PHP 5.4+

Installation

composer create-project jaceju/clitool-boilerplate myapp -s dev

Change application information

Change the constants below in src/App/Application.php:, (*2)

    const NAME = 'App';
    const BIN_NAME = 'app';
    const REPOSITORY = 'vendor-name/app-repository';

Rename output phar in box.json:, (*3)

    "output": "bin/app.phar",

Finally, change the name, description, authors and scripts in composer.json., (*4)


Here is a example of README.md below for authors of the package. I suppose package name is app in this example., (*5)

You can remove all description above and this line., (*6)

App

Requirement

  • PHP 5.4+

Installation

Add ~/.composer/vendor/bin/ to PATH environment variable first. Then can install the package by:, (*7)

composer global require vendor-name/app-repository

And app command should be executable., (*8)

Build executable phar

You can build the phar file by:, (*9)

composer build

Self Updating

Update app to latest version:, (*10)

app self-update

Zsh auto-completion

You can create an auto-completion of app for zsh by:, (*11)

app zsh --bind app > ~/.zsh/app

Then add the line below to your .zshrc file:, (*12)

source ~/.zsh/app

Same steps as above in bash auto-completion., (*13)

Powered by

License

MIT, (*14)

The Versions

27/07 2015

dev-master

9999999-dev

The command line tool.

  Sources   Download

MIT

The Requires

 

The Development Requires