PHPackages                             ronindevelopers/tanto - 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. ronindevelopers/tanto

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

ronindevelopers/tanto
=====================

A CLI tool to manage scripts from composer.json and package.json.

11PHP

Since Dec 20Pushed 1y ago2 watchersCompare

[ Source](https://github.com/RoninDevelopers/tanto)[ Packagist](https://packagist.org/packages/ronindevelopers/tanto)[ RSS](/packages/ronindevelopers-tanto/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Tanto CLI
=========

[](#tanto-cli)

Tanto is a PHP CLI tool designed to streamline the management of project scripts defined in `composer.json` and `package.json`. It scans your project, extracts script commands, and lets you run them easily from the CLI.

---

*A tantō a traditionally made Japanese knife that were worn by the samurai class of feudal Japan. The tantō dates to the Heian period, when it was mainly used as a weapon but evolved in design over the years to become more ornate. Tantō were used in traditional martial arts (tantojutsu). The term has seen a resurgence in modern times, with the rise of martial arts in Japan and the West.*

---

Features
--------

[](#features)

- Automatically detects scripts in `composer.json` and `package.json`.
- Generates a `tanto.yml` configuration file with all detected commands.
- Provides an interactive menu to list and run available commands.
- Allows direct execution of a command by its name.

---

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

[](#installation)

### Step 1: Install the Package via Composer

[](#step-1-install-the-package-via-composer)

To install Tanto, add it to your project using Composer:

```
composer require --dev ronindevelopers/tanto
```

Alternatively, you can install it globally:

```
composer global require ronindevelopers/tanto
```

### Step 2: Set Up the CLI

[](#step-2-set-up-the-cli)

If installed locally, you can use the `bin/tanto` script:

```
./vendor/bin/tanto
```

For global installations, the `tanto` command will be available directly:

```
tanto
```

---

Usage
-----

[](#usage)

### 1. Initialize the Configuration

[](#1-initialize-the-configuration)

Run the `tanto:init` command to scan your project and create the `tanto.yml` file:

```
./vendor/bin/tanto init
```

This will:

- Look for `composer.json` and `package.json` files.
- Extract all scripts and commands.
- Save them in a `tanto.yml` file in your project root.

Example `tanto.yml`:

```
commands:
  - name: test
    command: npm test
    source: package.json
    description: ''
  - name: build
    command: composer build
    source: composer.json
    description: ''
```

### 2. List and Run Commands

[](#2-list-and-run-commands)

To list all available commands and run them interactively, use the `tanto:run` command:

```
./vendor/bin/tanto run
```

This will display a numbered list of commands. Select one to execute it.

Example:

```
Available Commands:
[0] test (package.json)
[1] build (composer.json)

Select a command to run:
```

### 3. Run a Command Directly

[](#3-run-a-command-directly)

You can run a command directly by passing its name as an argument to `tanto:run`:

```
./vendor/bin/tanto run test
```

If the command name matches one in `tanto.yml`, it will execute immediately.

### 4. Update the Configuration

[](#4-update-the-configuration)

Run the update `tanto:update` command to refresh `tanto.yml` with the latest scripts:

```
./vendor/bin/tanto update
```

This will scan `package.json` and `composer.json` for new commands. Existing commands' descriptions will be preserved. New commands will have a '' description by default, which you can manually edit later in `tanto.yml`.

---

### Contributing

[](#contributing)

We welcome contributions! Please fork the repository, make your changes, and submit a pull request.

---

License
-------

[](#license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a5a4f37e9758a635a7ae1ed1be3e42472911623d3d85d1ecf0e298eca0287330?d=identicon)[preda-bogdan](/maintainers/preda-bogdan)

---

Top Contributors

[![preda-bogdan](https://avatars.githubusercontent.com/u/23024731?v=4)](https://github.com/preda-bogdan "preda-bogdan (12 commits)")

### Embed Badge

![Health badge](/badges/ronindevelopers-tanto/health.svg)

```
[![Health](https://phpackages.com/badges/ronindevelopers-tanto/health.svg)](https://phpackages.com/packages/ronindevelopers-tanto)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
