PHPackages                             yahvya/php-cli-tool-builder - 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. yahvya/php-cli-tool-builder

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

yahvya/php-cli-tool-builder
===========================

PHP library which helps to build cli php scripts

00PHP

Since Aug 25Pushed 8mo agoCompare

[ Source](https://github.com/yahvya/personal-php-cli-tool-builder-util)[ Packagist](https://packagist.org/packages/yahvya/php-cli-tool-builder)[ RSS](/packages/yahvya-php-cli-tool-builder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP CLI tool builder
====================

[](#php-cli-tool-builder)

> A lightweight library to build your own custom CLI scripts.

---

📄 Library Details
-----------------

[](#-library-details)

- 👤 **Author and maintainer**: Yahaya Bathily - [GitHub](https://github.com/yahvya)
- 📄 **License**: MIT
- 🧾 **License usage**: Free to use in both commercial and non-commercial projects under the MIT license.
- 🗓️ **Created at**: 25/08/2025

---

📚 Documentation
---------------

[](#-documentation)

The steps to create your own scripts are as follows:

- Create your command classes by implementing the `CliCommand` interface
- Create the script file
- Load your autoload file
- Create an instance of the `CliToolBuilder` class with the expected configuration like bellow
- Call the treat input method with the arguments of the script as a parameter (you can simulate your arguments by passing a formated array like `$argv`, 'command name' 'arguments...')

```
