PHPackages                             firehed/deploy-command - 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. firehed/deploy-command

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

firehed/deploy-command
======================

Deployment command

1.2.0(5y ago)05.0k[6 PRs](https://github.com/Firehed/deploy-command/pulls)MITPHPPHP ^7.2 || ^8.0

Since Jun 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Firehed/deploy-command)[ Packagist](https://packagist.org/packages/firehed/deploy-command)[ RSS](/packages/firehed-deploy-command/feed)WikiDiscussions master Synced 3d ago

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

Symfony Console Deploy Command
==============================

[](#symfony-console-deploy-command)

[![Latest Stable Version](https://camo.githubusercontent.com/9cb240c617de659392c9bfeff6f412a9e72c960592f4f2f349000d91d1fd2a1c/68747470733a2f2f706f7365722e707567782e6f72672f666972656865642f6465706c6f792d636f6d6d616e642f76)](//packagist.org/packages/firehed/deploy-command)[![License](https://camo.githubusercontent.com/ebc3843bfa6d2f52cf2cdd573a721066664acc15a437cdfb3cf5fd31043f5966/68747470733a2f2f706f7365722e707567782e6f72672f666972656865642f6465706c6f792d636f6d6d616e642f6c6963656e7365)](//packagist.org/packages/firehed/deploy-command)

[![Test](https://github.com/Firehed/deploy-command/workflows/Test/badge.svg)](https://github.com/Firehed/deploy-command/actions?query=workflow%3ATest)[![Lint](https://github.com/Firehed/deploy-command/workflows/Lint/badge.svg)](https://github.com/Firehed/deploy-command/actions?query=workflow%3ALint)[![Static analysis](https://github.com/Firehed/deploy-command/workflows/Static%20analysis/badge.svg)](https://github.com/Firehed/deploy-command/actions?query=workflow%3A%22Static+analysis%22)[![codecov](https://camo.githubusercontent.com/fedb59af666a4f41dfc25296b02d683429696c2990cbe422a9f9f087f252a843/68747470733a2f2f636f6465636f762e696f2f67682f466972656865642f6465706c6f792d636f6d6d616e642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Firehed/deploy-command)

This is a premade Symfony Console component to manually deploy your application. At this time, it only supports deployment to Kubernetes via `kubectl`. Deploying multiple images at once *is* supported.

Ultimately, it's a fancy wrapper around running `kubectl set image deploy ...`.

Configuration and Usage
-----------------------

[](#configuration-and-usage)

`composer require firehed/deploy-command`

Somewhere in your existing Symfony Console setup or config:

```
$targets = [
    [
        'container' => 'your-container-name',
        'deployment' => 'your-deployment-name',
        'image' => 'yourco/yourimage:$IMAGE',
        'namespace' => 'your-deployment-namespace',
    ], [
        // Another thing to deploy at the same time
    ]
];
$kubectl = new Firehed\Console\Deploy\Kubectl($targets);
$deploy = new Firehed\Console\Deploy($kubectl);

$application = new Symfony\Component\Console\Application();
// ...
$application->add($deploy);
$application->run();
```

In your `image`, `$IMAGE` will be substituted with the commit hash of the command argument, or that of `master`. It is NOT a PHP variable in the above example (note single quotes). `namespace` is optional, and will default to Kubernetes' `default`.

### Event hooks

[](#event-hooks)

The deploy command will run any event hooks you request before or after the deployment process runs. To register a hook, call `$deploy->before($hook);` or `$deploy->after($hook);`The hook must be a callable with the signature `function (string $hash, string $revision, bool $isDryRun)`. Hooks were designed primarily for sending notifications (e.g. posting to Slack) but can be used for whatever you want.

Requirements and Limitations
----------------------------

[](#requirements-and-limitations)

This only works in git repositories, and expects that your docker image will be tagged with the full 40-character commit hash (e.g. `yourname/yourfancyproject:92dac20583b35ea7167366bbf0b24243016911c0`). This is only a deployment tool, and does not perform the builds.

All of the images deployed will use the same hash, and all deploy together. Selective deployment is not supported at this time.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

Established project with proven stability

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

Total

3

Last Release

2053d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.2.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/354842?v=4)[Eric Stern](/maintainers/Firehed)[@Firehed](https://github.com/Firehed)

---

Top Contributors

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

---

Tags

cliconsoledockercommanddeploymentkubernetesk8s

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/firehed-deploy-command/health.svg)

```
[![Health](https://phpackages.com/badges/firehed-deploy-command/health.svg)](https://phpackages.com/packages/firehed-deploy-command)
```

###  Alternatives

[league/climate

PHP's best friend for the terminal. CLImate allows you to easily output colored text, special formats, and more.

1.9k14.0M273](/packages/league-climate)[helhum/typo3-console

A reliable and powerful command line interface for TYPO3 CMS

2939.0M192](/packages/helhum-typo3-console)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[adhocore/cli

Command line interface library for PHP

3501.2M50](/packages/adhocore-cli)[aplus/cli

Aplus Framework CLI Library

2301.7M6](/packages/aplus-cli)

PHPackages © 2026

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