PHPackages                             hmazter/console-skeleton - 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. hmazter/console-skeleton

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

hmazter/console-skeleton
========================

Skeleton for a console application with DI-container and yaml-config

v1.0.0(9mo ago)2631MITPHPPHP ^8.4CI passing

Since Mar 14Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/hmazter/console-skeleton)[ Packagist](https://packagist.org/packages/hmazter/console-skeleton)[ RSS](/packages/hmazter-console-skeleton/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (6)Dependencies (8)Versions (10)Used By (0)

Console Skeleton
================

[](#console-skeleton)

[![Latest Stable Version](https://camo.githubusercontent.com/d04ff2daca41b82c545c1bd43b0e8d49a72ba839dde0aeb6a2efdfded305ae7b/68747470733a2f2f706f7365722e707567782e6f72672f686d617a7465722f636f6e736f6c652d736b656c65746f6e2f762f737461626c65)](https://packagist.org/packages/hmazter/console-skeleton)[![Total Downloads](https://camo.githubusercontent.com/201c9bf1478bd15934707f9da4295f3e5cc339505d0ee5b6aa6b2e86ee2db96a/68747470733a2f2f706f7365722e707567782e6f72672f686d617a7465722f636f6e736f6c652d736b656c65746f6e2f646f776e6c6f616473)](https://packagist.org/packages/hmazter/console-skeleton)[![License](https://camo.githubusercontent.com/93de95900ec44be8c40f1783d154a171b3e3907ed29f80c8c709f245a6c8e6ca/68747470733a2f2f706f7365722e707567782e6f72672f686d617a7465722f636f6e736f6c652d736b656c65746f6e2f6c6963656e7365)](https://packagist.org/packages/hmazter/console-skeleton)

Skeleton for a console application, including:

- DI-Container
- Services and commands [autowired in yaml-config](config/services.yaml)
- [Example Command](src/Command/ExampleCommand.php)
- [Example test](tests/Command/ExampleCommandTest.php)
- [Phar Builder](https://github.com/box-project/box)

Getting started
---------------

[](#getting-started)

This will create a new project with the skeleton for a console application:

```
composer create-project hmazter/console-skeleton the-new-app-name
cd the-new-app-name
```

The skeleton can then be executed with:

```
./app
```

### Building distributable phar

[](#building-distributable-phar)

A phar-file that can be distributed can be built with:

```
composer build
```

This will output the phar-file in the project root, named `.phar`.

### Running with docker

[](#running-with-docker)

Build the app with:

```
docker-compose build
```

And run the app with docker with this command:

```
docker-compose run console ./app
```

### Tests

[](#tests)

Tests can be run with:

```
composer test
```

### Static Code analyse

[](#static-code-analyse)

Code can be static analysed with [PHPStan](https://phpstan.org/):

```
composer analyse
```

### Continue building

[](#continue-building)

Go ahead and:

- Edit/replace command in src/Commad/ExampleCommand
- Add more commands in src/Command
- Add additional classes that you need in src/
- Edit/replace the test in tests/Command/ExampleCommandTest

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance57

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 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 ~392 days

Recently: every ~607 days

Total

8

Last Release

284d ago

Major Versions

v0.5.0 → v1.0.02025-09-19

PHP version history (3 changes)v0.1.0PHP ^7.2

v0.5.0PHP ^8.1

v1.0.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/805377?v=4)[Kristoffer Högberg](/maintainers/hmazter)[@hmazter](https://github.com/hmazter)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hmazter-console-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/hmazter-console-skeleton/health.svg)](https://phpackages.com/packages/hmazter-console-skeleton)
```

###  Alternatives

[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54642.4k4](/packages/jolicode-castor)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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