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(5y ago)18691MITPHPPHP &gt;=7.2.5

Since Nov 29Pushed 3y 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 2mo 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 43% 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

2142d 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

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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