apex/cli

Develop efficient console applications.

Installs: 19

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

2.0.2 2024-01-11 16:31 UTC

This package is auto-updated.

Last update: 2024-04-11 17:01:08 UTC


README

Quickly and efficiently develop CLI based applications. Features include

  • File / directory structure based routing for better organization and single responsibility principle
  • Many helper functions to automatically wordwrap all text, get user input, get password, specify new password, get y/n confirmation, render SQL style table, render two column array, and more.
  • Support for additional arguments, plus short and long flags with optional values.
  • Provides uniform, concise and well structured help screen for all commands.
  • Utilizes levenshtein algorithm to automatically detect typos within command names.
  • Easily define shortcuts to commands.
  • Supports attribute based dependancy injection providing cleaner and more efficient development.

Installation

Install via Composer with:

composer require apex/cli

Table of Contents

  1. Getting Started
  2. Create CLI Commands
  3. Define Shortcuts
  4. CLI Help Screen
  5. Cli Function Reference

Follow Apex

Loads of good things coming in the near future including new quality open source packages, more advanced articles / tutorials that go over down to earth useful topics, et al. Stay informed by joining the mailing list on our web site, or follow along on Twitter at @mdizak1.