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 today

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

14

—

LowBetter than 1% of packages

Maintenance30

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://avatars.githubusercontent.com/u/23024731?v=4)[Bogdan Preda](/maintainers/preda-bogdan)[@preda-bogdan](https://github.com/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

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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