PHPackages                             silassare/kli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. silassare/kli

ActiveLibrary[CLI &amp; Console](/categories/cli)

silassare/kli
=============

Kli helps you add an interactive command-line interface to your php project.

1.0.4(4y ago)3276MITPHPPHP &gt;=5.6.0CI failing

Since Mar 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/silassare/kli)[ Packagist](https://packagist.org/packages/silassare/kli)[ Docs](https://github.com/silassare/kli#readme)[ RSS](/packages/silassare-kli/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Kli
===

[](#kli)

PHP &gt;=8.1 fluent-builder CLI framework. Add a typed, interactive command-line interface to any PHP application in minutes.

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Architecture](#architecture)
- [Commands and Actions](#commands-and-actions)
- [Options and Types](#options-and-types)
    - [String](#string-type)
    - [Number](#number-type)
    - [Bool](#bool-type)
    - [Path](#path-type)
- [Handlers](#handlers)
- [Parsed Arguments — KliArgs](#parsed-arguments--kliargs)
- [Positional (Offset) Arguments](#positional-offset-arguments)
- [Interactive Prompts](#interactive-prompts)
- [Interactive REPL Mode](#interactive-repl-mode)
- [ANSI Styling — KliStyle](#ansi-styling--klistyle)
- [Table Rendering — KliTable](#table-rendering--klitable)
- [Output Helpers](#output-helpers)
- [Exception Handling](#exception-handling)
- [Naming Rules](#naming-rules)
- [Extending Kli](#extending-kli)
- [Testing](#testing)
- [Developer Workflows](#developer-workflows)

---

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1

---

Installation
------------

[](#installation)

```
composer require silassare/kli
```

---

Quick Start
-----------

[](#quick-start)

```
#!/usr/bin/env php
