PHPackages                             devdot/cli-directory-project - 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. devdot/cli-directory-project

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

devdot/cli-directory-project
============================

Addon for making directory projects, suitable for devdot/cli.

v1.2.0(4mo ago)0121MITPHPPHP ^8.4

Since Sep 28Pushed 4mo agoCompare

[ Source](https://github.com/devdot/cli-directory-project)[ Packagist](https://packagist.org/packages/devdot/cli-directory-project)[ RSS](/packages/devdot-cli-directory-project/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (4)Used By (1)

devdot/cli-directory-project
============================

[](#devdotcli-directory-project)

*Tools for development of devdot/cli.*

See documentation on [https://github.com/devdot/cli](GitHub).

Use with traits like this (will add the --working-dir option flag to a command):

```
use Devdot\Cli\Command as CliCommand;
use Devdot\Cli\DirectoryProject\WorkingDirectoryTrait;

class Command extends CliCommand
{
    use WorkingDirectoryTrait;

    public function __construct()
    {
        parent::__construct();
    }

    protected function handle(): int
    {
        $this->output->writeln($this->getWorkingDirectory());

        $cwd = $this->getWorkingDirectoryInterface();
        $this->output->writeln($cwd->formatPath('somewhere/relative'));

        return self::SUCCESS;
    }
}
```

Add to the CLI Kernel services if you want to get `WorkingDirectoryInterface` as a dependency injection available object at `Command` construction:

```
// src/Kernel.php

final class Kernel extends BaseKernel
{
    // ...

    protected array $providers = [
        \Devdot\Cli\DirectoryProject\WorkingDirectoryServiceProvider::class,
        // ..
    ];

    // ..
}
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance74

Regular maintenance activity

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~44 days

Total

3

Last Release

143d ago

PHP version history (3 changes)v1.0.0PHP ^8.2

v1.1.0PHP ^8.3

v1.2.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f163f5df7377ef004e7cdaf08b905936b0af3d85b680d986dce83fd1bd0a0ad?d=identicon)[thomaskuschan](/maintainers/thomaskuschan)

---

Top Contributors

[![devdot](https://avatars.githubusercontent.com/u/3763567?v=4)](https://github.com/devdot "devdot (4 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/devdot-cli-directory-project/health.svg)

```
[![Health](https://phpackages.com/badges/devdot-cli-directory-project/health.svg)](https://phpackages.com/packages/devdot-cli-directory-project)
```

###  Alternatives

[drush/drush

Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

2.4k57.4M685](/packages/drush-drush)[humbug/php-scoper

Prefixes all PHP namespaces in a file or directory.

7963.0M35](/packages/humbug-php-scoper)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[tempest/console

The console component provides a way to build commands within the framework or standalone command-line applications.

7349.2k6](/packages/tempest-console)[notamedia/console-jedi

Console application for CMS Bitrix

8942.5k1](/packages/notamedia-console-jedi)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)

PHPackages © 2026

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