PHPackages                             bretrzaun/deployment-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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. bretrzaun/deployment-command

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

bretrzaun/deployment-command
============================

Console-Command to deploy an application to (multiple) servers

0.3.0(6y ago)18691MITPHPPHP &gt;=7.2.5CI failing

Since Nov 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bretrzaun/DeploymentCommand)[ Packagist](https://packagist.org/packages/bretrzaun/deployment-command)[ RSS](/packages/bretrzaun-deployment-command/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

Deployment Command
==================

[](#deployment-command)

[![Latest Stable Version](https://camo.githubusercontent.com/d4eb8cec3cca5187896c0e321b4be4b93619e86f332ee80b2a0f55295fbe5ce6/68747470733a2f2f706f7365722e707567782e6f72672f62726574727a61756e2f6465706c6f796d656e742d636f6d6d616e642f76)](//packagist.org/packages/bretrzaun/deployment-command)[![Build Status](https://camo.githubusercontent.com/d226be88557e41fef45bd99b62caf449e730e908a106c2b6df6bf92d9e666549/68747470733a2f2f7472617669732d63692e6f72672f62726574727a61756e2f4465706c6f796d656e74436f6d6d616e642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bretrzaun/DeploymentCommand)[![License](https://camo.githubusercontent.com/7361f64bde8d230e3359b15b096536680d5a8c5928186a2381ceca1c0c34979b/68747470733a2f2f706f7365722e707567782e6f72672f62726574727a61756e2f6465706c6f796d656e742d636f6d6d616e642f6c6963656e7365)](//packagist.org/packages/bretrzaun/deployment-command)

Symfony Console command to deploy an application to remote server(s).

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

[](#installation)

Install via Composer:

`composer require bretrzaun/deployment-command`

Configuration
-------------

[](#configuration)

For each environment create a configuration file named like the environment.

The nodes must be accessible via SSH-based authentication or a keyfile can be given.

### Example

[](#example)

```
{
    "server" : {
        "nodes" : ["user@my-server"],
        "keyfile": "/path-to/keyfile",
        "target" : "/target-folder",
        "scripts" : {
            "pre-deploy-cmd" : [],
            "post-deploy-cmd" : [
                "command1",
                "command2"
            ]
        }
    },
    "scripts" : {
        "pre-deploy-cmd" : [
            "composer install --no-dev -o"
        ],
        "post-deploy-cmd" : [
            "composer install"
        ]
    }
}
```

### Options

[](#options)

In the `options` section the following nodes can be defined:

#### script-timeout

[](#script-timeout)

Process timeout in seconds for each local script. Default value: 120 seconds

#### sync-timeout

[](#sync-timeout)

Process timeout in seconds for sync. Default value: 300 seconds

Usage
-----

[](#usage)

Register the console command to a Symfony console application:

```
$console->add(new DeploymentCommand('path/to/config-folder/'));
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

2193d ago

PHP version history (3 changes)0.2.0PHP &gt;=7.1.3

0.2.1PHP &gt;=7.1.8

0.3.0PHP &gt;=7.2.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/277782?v=4)[Bret R. Zaun](/maintainers/bretrzaun)[@bretrzaun](https://github.com/bretrzaun)

---

Top Contributors

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

---

Tags

deploymentrsyncsymfony-console

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bretrzaun-deployment-command/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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