PHPackages                             nibsirahsieu/deploy-bundle - 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. nibsirahsieu/deploy-bundle

ActiveSymfony-bundle[DevOps &amp; Deployment](/categories/devops)

nibsirahsieu/deploy-bundle
==========================

Easy deploy via rsync. Porting of Symfony 1 project:deploy command.

1.6.4(2y ago)047CC-BY-SA-3.0PHPPHP ^7.0.8 || ^8.0

Since Oct 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nibsirahsieu/DeployBundle)[ Packagist](https://packagist.org/packages/nibsirahsieu/deploy-bundle)[ Docs](http://github.com/nibsirahsieu/DeployBundle)[ RSS](/packages/nibsirahsieu-deploy-bundle/feed)WikiDiscussions master Synced 3w ago

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

DeployBundle
============

[](#deploybundle)

[![Total Downloads](https://camo.githubusercontent.com/b1432412b9e54cd5a6d902a48828b1a05828aa90d6c441c616e90d0e2f245c54/68747470733a2f2f706f7365722e707567782e6f72672f687061746f696f2f6465706c6f792d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/hpatoio/deploy-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/2ecf0116914028a741cf847b46f8a22eb50bd455f2abf8c58885c1d550a07d35/68747470733a2f2f706f7365722e707567782e6f72672f687061746f696f2f6465706c6f792d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/hpatoio/deploy-bundle)[![SensioLabsInsight](https://camo.githubusercontent.com/3accf10ee925e49b853d6ca3b5b557a656953eafd288e8d5c0b8400b43de7e9d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62343535366364372d363532662d346135382d393132362d6562326331616264366338392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/b4556cd7-652f-4a58-9126-eb2c1abd6c89)[![Project Status](https://camo.githubusercontent.com/d57a3422397ebea38f40d708a5c6b93fad2c784c466425541f812be862484d1d/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f687061746f696f2f4465706c6f7942756e646c652e706e67)](http://stillmaintained.com/hpatoio/DeployBundle)

This project is fork of .

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

[](#installation)

Run the command:

```
$ composer require nibsirahsieu/deploy-bundle ~1.6
```

**N.B.** This project follow [semantic versioning](http://semver.org/). Latest stable branch is `1.6`.

### Enable the bundle in your project

[](#enable-the-bundle-in-your-project)

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Hpatoio\DeployBundle\DeployBundle(),
        // ...
    );
}
```

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

[](#configuration)

Configuration is all about defining environments. You can define as many environments as you want, the only mandatory value is `host`. The deploy is made via rsync so default value are used if none are specified. Remember that to get the configuration reference for this bundle you can run:

```
bin/console config:dump-reference DeployBundle
```

Configuration example:

```
# app/config/config.yml
deploy:
  prod:
    rsync-options: '-azC --force --delete --progress -h --checksum'
    host: my.destination.env
    dir: /path/to/project/root
    user: root
    port: 22
    timeout: 120 # Connection timeout in seconds. 0 for no timeout.
  uat:
    host: 192.168.1.10
    user: root2
    dir: /path/to/project/root
    port: 22022
    post_deploy_operations:
        - bin/console cache:clear --env=prod
        - bin/console assets:install --env=prod
        - bin/console assetic:dump --env=prod
```

Most of the keys don't need explanation except:

#### post\_deploy\_operations

[](#post_deploy_operations)

You can add a list of command you want run on the remote server after the deploy. In the configuration above you can see the common command you run after a deploy (clear the cache, publish assets etc) These commands are run as a shell command on the remote server. So you can enter whichever shell command you want (cp, rm etc)

Please don't confuse Symfony environment with deploy environment. As you can see in the configuration above we run `post_deploy_operations` for Symfony environment `prod` on deploy environment `uat`

#### rsync-options

[](#rsync-options)

If you add the key `rsync-options` to your environment you will override the default options used for rsync. So the system is using:

- "-azC --force --delete --progress -h --checksum" if nothing is specified
- the value for the key `rsync-options` if specified it in `config.yml` for the target environment
- the value of the command line option `--rsync-options`

### Rsync Exclude

[](#rsync-exclude)

Create a `rsync_exclude.txt` file under `app/config` to exclude files from deploy. [here](https://github.com/hpatoio/DeployBundle/blob/master/.rsync_exclude.txt.dist) a good starting point.

You can also create a per-environment rsync\_exclude. Just create a file in `app/config` with name `rsync_exclude_{env}.txt`. For more details you can read here #3 and here #7

Force vendor syncronization
---------------------------

[](#force-vendor-syncronization)

Usually `vendor` dir is excluded from rsync. If you need tou sync it you can add `--force-vendor`. (see later for an example)

Use
---

[](#use)

Deployment is easy:

```
php bin/console project:deploy --go prod
```

Feel a bit unsure ? Simulate the deploy

```
php bin/console project:deploy prod
```

Need to update vendor ? Use the option --force-vendor (Usually vendor is excluded from rsync)

```
php bin/console project:deploy --go --force-vendor prod
```

Custom parameters for rsync

```
php bin/console project:deploy --rsync-options="-azChdl" prod
```

License
-------

[](#license)

DeployBundle is licensed under the CC-BY-SA-3.0 - see [here](http://www.spdx.org/licenses/CC-BY-SA-3.0) for details

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 67.6% 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 ~253 days

Recently: every ~11 days

Total

17

Last Release

943d ago

PHP version history (3 changes)1.0PHP &gt;=5.3.2

1.5.4PHP ^7.0.8

1.6.3PHP ^7.0.8 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/208039?v=4)[Nibsirahsieu](/maintainers/nibsirahsieu)[@nibsirahsieu](https://github.com/nibsirahsieu)

---

Top Contributors

[![hpatoio](https://avatars.githubusercontent.com/u/249948?v=4)](https://github.com/hpatoio "hpatoio (48 commits)")[![nibsirahsieu](https://avatars.githubusercontent.com/u/208039?v=4)](https://github.com/nibsirahsieu "nibsirahsieu (16 commits)")[![dator](https://avatars.githubusercontent.com/u/79864796?v=4)](https://github.com/dator "dator (3 commits)")[![hjanuschka](https://avatars.githubusercontent.com/u/2891702?v=4)](https://github.com/hjanuschka "hjanuschka (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![nelsonkopliku](https://avatars.githubusercontent.com/u/8167114?v=4)](https://github.com/nelsonkopliku "nelsonkopliku (1 commits)")[![royopa](https://avatars.githubusercontent.com/u/442991?v=4)](https://github.com/royopa "royopa (1 commits)")

---

Tags

commanddeploy

### Embed Badge

![Health badge](/badges/nibsirahsieu-deploy-bundle/health.svg)

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

PHPackages © 2026

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