PHPackages                             swew/cli - 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. swew/cli

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

swew/cli
========

SWEW/CLI: A PHP package for streamlined command line interface (CLI) development, providing an intuitive API for creating custom commands, handling input/output, and executing command logic effortlessly. Simplify your CLI application development with rapid development.

v1.2.0(1y ago)315111MITPHPPHP &gt;=8.3

Since Feb 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/swew-app/cli)[ Packagist](https://packagist.org/packages/swew/cli)[ RSS](/packages/swew-cli/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (25)Used By (1)

SWEW/CLI
========

[](#swewcli)

The package is a PHP library for building console applications and commands in an object-oriented manner. It provides a simple and intuitive API for defining commands and handling arguments and options. It also includes utilities for interacting with the console, such as coloring output and prompting for user input. With this package, you can quickly create powerful command-line tools and automate repetitive tasks in your development workflow.

---

Packages developed by SWEW
==========================

[](#packages-developed-by-swew)

> - [swew/cli](https://packagist.org/packages/swew/cli) - A command-line interface program with formatting and text entry functions.
> - [swew/test](https://packagist.org/packages/swew/test) - A test framework that is designed to fix the fatal flaw of other test frameworks.
> - [swew/db](https://packagist.org/packages/swew/db) - A lightweight, fast, and secure PHP library for interacting with databases, creating migrations, and running queries.
> - [swew/dd](https://packagist.org/packages/swew/dd) - The simplest way to debug variables. As in Laravel.

---

Install
=======

[](#install)

```
composer require swew/cli
```

Example of use
--------------

[](#example-of-use)

### Create command

[](#create-command)

```
