beryllium/getoptionkit-skeleton

A quick start package for creating CLI scripts using GetOptionKit

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/beryllium/getoptionkit-skeleton

1.1.0 2016-05-13 07:49 UTC

This package is auto-updated.

Last update: 2025-09-29 01:20:57 UTC


README

A quick demo of the GetOptionKit CLI parser for PHP

Installation

composer create-project beryllium/getoptionkit-skeleton myproject

About the Skeleton

The skeleton script is located in bin/hello, which is an executable PHP file.

It defines two optional parameters, for '--help' and a custom '--greeting', but the core functionality of the script is to echo a greeting to the provided username.

Usage:

bin/hello [-h] [-g "Greetings"] yourname
bin/hello [--help] [--greeting "Greetings"] yourname

There is also a bootstrap.php script, which performs some basic checks and defines a simple "writeln" function.