PHPackages                             kovsky0/tooler-framework - 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. kovsky0/tooler-framework

ActiveProject[Framework](/categories/framework)

kovsky0/tooler-framework
========================

a minimalistic PHP framework for rapid development of Command Line Interface tools.

101320PHP

Since May 18Pushed 7y agoCompare

[ Source](https://github.com/kovsky0/ToolerFramework)[ Packagist](https://packagist.org/packages/kovsky0/tooler-framework)[ RSS](/packages/kovsky0-tooler-framework/feed)WikiDiscussions master Synced 3d ago

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

[![](https://camo.githubusercontent.com/2b92de234f5f75c2feb4b3e5bfbfbe1b0863c7a307039b128119a309057cc33f/687474703a2f2f7779727a796b6f77736b612e757365726d642e6e65742f696d67732f546f6f6c65724672616d65776f726b5f322e706e67)](https://camo.githubusercontent.com/2b92de234f5f75c2feb4b3e5bfbfbe1b0863c7a307039b128119a309057cc33f/687474703a2f2f7779727a796b6f77736b612e757365726d642e6e65742f696d67732f546f6f6c65724672616d65776f726b5f322e706e67)

a **minimalistic** PHP framework for rapid Command Line Interface tools development.

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

[](#installation)

Tooler can be installed using Composer:

```
composer create-project kovsky0/tooler-framework -s dev

```

The idea
--------

[](#the-idea)

The main idea behind this project was to create a minimalistic framework for rapid CLI tools development. It gives you a simple directory structure and access to basic helpers for: parsing the input, formatting the output, and prompting user for additional input.

Quick Start (in three simple steps)
-----------------------------------

[](#quick-start-in-three-simple-steps)

### Step 1: Build a new command

[](#step-1-build-a-new-command)

After creating the project you can build your commands through 'tooler build' command:

```
php tooler build two-plus-two

```

It will automatically create the following files:

- ./two-plus-two which you can use to run your command with 'php two-plus-two'
- ./Commands/TwoPlusTwo/TwoPlusTwoCommand.php which you can use to specify what your command should do

!!! Imporant: for the consistant composition, please use a dash ("-") to seperate the words.

### Step 2: Define what the command should do

[](#step-2-define-what-the-command-should-do)

Add your logic to the 'execute' method in the following file:

```
./Commands/TwoPlusTwo/TwoPlusTwoCommand.php

```

For example:

```
