PHPackages                             positivecodes/deployer - 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. positivecodes/deployer

ActiveScript

positivecodes/deployer
======================

GIT/SVN deployer for Yii 2 apps.

3.4.2(8y ago)030MITShell

Since Nov 15Pushed 8y ago2 watchersCompare

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

READMEChangelog (2)DependenciesVersions (19)Used By (0)

deployer
========

[](#deployer)

Deploys SVN/GIT version of Yii 2 project

SYNOPSIS
--------

[](#synopsis)

```
deployer -d TAG [-v] [-s] [-e ENV]
deployer -r TAG [-v] [-e ENV]
deployer -dev [-v] [-s] [-e ENV]
deployer -b BRANCH [-v] [-s] [-e ENV]
deployer -h
deployer -c
deployer -u

```

LOCAL INSTALLATION
------------------

[](#local-installation)

Copy `deployer` to the project folder.

GLOBAL INSTALLATION
-------------------

[](#global-installation)

Run

```
composer global require positivecodes/deployer

```

and then

```
composer run-script post-update-cmd -d COMPOSER_VENDOR/positivecodes/deployer

```

where `COMPOSER_VENDOR` is the vendor composer folder. You can find it by running `composer global config vendor-dir --absolute`.

GLOBAL UPDATE
-------------

[](#global-update)

Run

```
deployer -u

```

CONFIGURATION
-------------

[](#configuration)

Run `deployer -c` to generate configuration file and set all variables there.

DESCRIPTION
-----------

[](#description)

Deploys the target TAG version of Yii 2 project or rollbacks to the target TAG version. Creates the releases and composer folders. Deployed version is stored in the releases folder under the TAG name. Composer folder stores the vendor folder with composer dependencies. TAG version is SVN-imported or GIT-cloned using provided credentials. Script deletes `environments` folder and runs migration.

If environment is set to `Production` composer runs with option `--no-dev --optimize-autoloader`.

Deployed or rollbacked version is symlinked to the Apache host target folder.

optionaliasdescription-d TAG--deploy TAGdeploy TAG version-r TAG--rollback TAGrollback to TAG version-devdeploy development version-b BRANCH--branch BRANCHdeploy development version from BRANCH branch (no starting and ending trailers)-v--verboseruns the script in verbose mode where output of svn, composer and init is visible-s--skipmigrateskips the migration process-e ENV--env ENVsets environment name ENV for init-h--helphelp screen-c--configcreates (overwrites) deployer.cfg file-u--updateupdates deployer using composer in global modeCONFIGURATION
-------------

[](#configuration-1)

Configuration can be stored in separate file `deployer.cfg` (in the same folder).

namedescriptionHOSTProject folder name, this is virtual host target folder.ENVEnvironment name for Yii 2 init command (can be set with -e flag also).REPO\_TYPERepo type: GIT or SVN.REPO\_URLURL of the repo server.REPO\_USERName of the repo user with read rights.REPO\_PASSRepo password for REPO\_USER.DEV\_BRANCHRepo branch for development releases (no starting and ending trailers).RIGHTSOptional folder rights to be set (use chown syntax owner:group).PROJECTProject name (for display purposes only).EVENTS
------

[](#events)

The following events are available for additional scripts:

- BEFORE\_START
- AFTER\_END
- BEFORE\_DOWNLOAD
- AFTER\_DOWNLOAD
- BEFORE\_DEPLOY
- AFTER\_DEPLOY
- BEFORE\_DEPLOYDEV
- AFTER\_DEPLOYDEV
- BEFORE\_INIT
- AFTER\_INIT
- BEFORE\_MIGRATE
- AFTER\_MIGRATE
- BEFORE\_UPDATE
- AFTER\_UPDATE
- BEFORE\_ROLLBACK
- AFTER\_ROLLBACK
- BEFORE\_INSTALL
- AFTER\_INSTALL
- BEFORE\_SWITCH
- AFTER\_SWITCH

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

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

Recently: every ~67 days

Total

18

Last Release

3044d ago

Major Versions

2.2.1 → 3.02017-01-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/b33b799410f9cb8d69a27bce7ae65d5c0a0aa8e097b2624c2f5315400d653b38?d=identicon)[bizley](/maintainers/bizley)

---

Top Contributors

[![Yupik](https://avatars.githubusercontent.com/u/11853871?v=4)](https://github.com/Yupik "Yupik (1 commits)")

### Embed Badge

![Health badge](/badges/positivecodes-deployer/health.svg)

```
[![Health](https://phpackages.com/badges/positivecodes-deployer/health.svg)](https://phpackages.com/packages/positivecodes-deployer)
```

PHPackages © 2026

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