PHPackages                             leafs/seedling - 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/seedling

ActiveLibrary[Framework](/categories/framework)

leafs/seedling
==============

Build your console apps supafast

0.1.5(6mo ago)09MITPHP

Since Sep 29Pushed 6mo agoCompare

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

READMEChangelog (6)Dependencies (2)Versions (6)Used By (0)

 [![](https://private-user-images.githubusercontent.com/26604242/375177331-3a50d848-4290-4a46-8ab1-bc0a148da375.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0ODEwNDUsIm5iZiI6MTc3NTQ4MDc0NSwicGF0aCI6Ii8yNjYwNDI0Mi8zNzUxNzczMzEtM2E1MGQ4NDgtNDI5MC00YTQ2LThhYjEtYmMwYTE0OGRhMzc1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA2VDEzMDU0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI5Y2Q3N2NjMjVkNjg4MGJhZmIzMjI4Mzg1MWQ2ZDMyMTEyNGFkZmNiM2IwYTg2MjJmMTQ1MjY1OGFiMWQwNGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7TMIuUHIP_A-rzuDCW6UmvnNGgmsEdBybAE4Vgudh4c)](https://private-user-images.githubusercontent.com/26604242/375177331-3a50d848-4290-4a46-8ab1-bc0a148da375.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzU0ODEwNDUsIm5iZiI6MTc3NTQ4MDc0NSwicGF0aCI6Ii8yNjYwNDI0Mi8zNzUxNzczMzEtM2E1MGQ4NDgtNDI5MC00YTQ2LThhYjEtYmMwYTE0OGRhMzc1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA2VDEzMDU0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI5Y2Q3N2NjMjVkNjg4MGJhZmIzMjI4Mzg1MWQ2ZDMyMTEyNGFkZmNiM2IwYTg2MjJmMTQ1MjY1OGFiMWQwNGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7TMIuUHIP_A-rzuDCW6UmvnNGgmsEdBybAE4Vgudh4c)

Seedling
========

[](#seedling)

[![Latest Stable Version](https://camo.githubusercontent.com/e8b9bd01445034ae331eca921f28a4b286ace931150ef78a0cfc0526bc59dbf5/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f736565646c696e672f762f737461626c65)](https://packagist.org/packages/leafs/seedling)[![Total Downloads](https://camo.githubusercontent.com/5aa5d29a6637fcf113c410b71ab2d88ffd64f10aac5a7e6c176d568b8c73eba1/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f736565646c696e672f646f776e6c6f616473)](https://packagist.org/packages/leafs/seedling)[![License](https://camo.githubusercontent.com/420453b9ce816adeba8af13dc83715e9ebdb4c0012eddebbe82d9714844df3a2/68747470733a2f2f706f7365722e707567782e6f72672f6c656166732f736565646c696e672f6c6963656e7365)](https://packagist.org/packages/leafs/seedling)

Seedling is a lightweight PHP micro-framework for building CLI apps in minutes. It's built on top of Leaf Sprout and provides a simple and elegant syntax for defining commands, interacting with users, and handling input and output.

📦 Setting Up
------------

[](#-setting-up)

You can create a seedling project using the Leaf CLI

```
leaf create my-seedling-app --console
```

Or with composer

```
composer create-project leafs/seedling my-seedling-app
```

Once installed, Seedling will automatically configure itself, so you can type out `php leaf` to run your app.

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

[](#quick-start)

In development, you can always access your commands as well as some built-in seedling commands by running

```
php leaf
```

But once you publish your package to composer, your users will be able to run your app using the name of the file in the `bin` directory. For example, if your file is named `greeter`, they can run

```
./vendor/bin/greeter
```

Or if installed globally

```
greeter
```

Creating Commands
-----------------

[](#creating-commands)

You can create your own commands by using the `g:command` command. For example, to create a `greet` command, you can run

```
php leaf g:command greet
```

This will create a new command in the `app/console` directory as `GreetCommand.php`, which will have some boilerplate code to get you started.

```
