PHPackages                             leafs/sprout - 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. [Framework](/categories/framework)
4. /
5. leafs/sprout

ActiveLibrary[Framework](/categories/framework)

leafs/sprout
============

Fast, lightweight and minimal CLI framework for PHP

v0.9.2(8mo ago)25.0k↓51.2%1[3 issues](https://github.com/leafsphp/sprout/issues)7MITPHPPHP ^7.4|^8.0

Since Feb 9Pushed 8mo agoCompare

[ Source](https://github.com/leafsphp/sprout)[ Packagist](https://packagist.org/packages/leafs/sprout)[ Docs](https://leafphp.dev)[ GitHub Sponsors](https://github.com/leafsphp)[ Fund](https://opencollective.com/leaf)[ RSS](/packages/leafs-sprout/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (5)Versions (19)Used By (7)

Leaf Sprout (WIP)
=================

[](#leaf-sprout-wip)

🌱 Fast, lightweight and minimal CLI framework for PHP. It provides a type-safe, feature-rich environment to build CLI apps of all sizes, plus a ton of helpers for building amazing experiences for users interacting with your CLI app.

- Not based on any Laravel or Symfony console components
- First-class support for Leaf &amp; Leaf modules
- Comes with built in styling, input handling, output handling, and more
- Support for PHP 7.4 and above
- Easy to use, easy to extend

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

[](#installation)

You can install Leaf Sprout using the Leaf CLI or Composer:

```
leaf install sprout

# or with composer

composer require leafs/sprout
```

Usage
-----

[](#usage)

To get started, you need to create a file which will be the entry point for your CLI app. This file should be executable and should have a shebang at the top of the file. Here's an example of a simple CLI app:

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