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

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

releaz/deployer
===============

Yii2 Deployer (Based on Deployer)

1.2.6(8y ago)17661MITPHPPHP ~7.0

Since Jun 12Pushed 8y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

Configurable Deployment Tool (Based on Deployer)
================================================

[](#configurable-deployment-tool-based-on-deployer)

Build status: [![Build Status](https://camo.githubusercontent.com/a3fca7f11a5c25e16a0ec6cc367db851d0e61e0096b4a1c9ec6ba05c5c0cfe4a/68747470733a2f2f7472617669732d63692e6f72672f6a6f68616e6b6c61646465722f72656c65617a2d6465706c6f7965722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/johankladder/releaz-deployer)

Build status [Deployer](https://github.com/deployphp/deployer): [![Build Status](https://camo.githubusercontent.com/29297fa0b0652d0479135c9b9c1f89af753c853512d1cde5a25613eb338383c6/68747470733a2f2f7472617669732d63692e6f72672f6465706c6f797068702f6465706c6f7965722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/deployphp/deployer)

Docs:

Packagist:

---

This tool is created for easy Yii2 deployment with the help of Deployer. In this tool it's easy to configure deployment variables and share them between your colleagues.

Deployment:
-----------

[](#deployment)

Deploying is done with the help of [Deployer](https://github.com/deployphp/deployer). To use this dependency, please require the following in your composer.json file.

- `composer require releaz/deployer`

Afterwards initialize Deployer by calling `vendor/bin/dep init` and choose the 'Releaz' template. Doing so will generate an example config and the required Deployer deploy.php file. Please look below for more information on how to configure this file. Create the Yii2 configutation file by duplicating the generated .example config file in the common folder. By default the deploy.php file looks for `deploy-config.yml`

The `deploy.php` file can be edited in the same manner as Deployer. Please visit the Deployer [documentation](https://deployer.org/docs) for more help.

### Explanation:

[](#explanation)

```
# General information:
general:
  ssh_repo_url: 'git@github.com:johankladder/yii2-app-advanced.git'   # The repository your project is stored

# Staging servers:
server:
  # The production server
  production:
    host: 'applicationname.com'                       # Deployment server hostname/ip
    stage: 'production'                               # Stage name; can be used by 'dep deploy-yii [stage]
    branch: 'master'                                  # The branch that should be used to deploy
    deploy_path: '/var/www/applicationname.com'       # The deploy location
    ssh_user: 'username'                              # The SSH username, that has access to the remote server

  # The development server
  development:
    host: 'dev.applicationname.com'                   # Deployment server hostname/ip
    stage: 'development'                              # Stage name; can be used by 'dep deploy-yii [stage]
    branch: 'develop'                                 # The branch that should be used to deploy
    deploy_path: '/var/www/dev.applicationname.com'   # The deploy location
    ssh_user: 'username'                              # The SSH username, that has access to the remote server

  # A custom deployment server:
  custom:
    host: 'localhost'                                 # Deployment server hostname/ip
    stage: 'test'                                     # Stage name; can be used by 'dep deploy-yii [stage]
    branch: 'develop'                                 # The branch that should be used to deploy
    deploy_path: '/var/www/test.local'                # The deploy location
    ssh_user: 'johankladder'                          # The SSH username, that has access to the remote server
    settings:
      yii:
        init: 'Development'                           # Environment that can be used. See `php init` for possibilities
        overwrite: 'All'                              # Overwrite all the generated files during init | Can also be None
      files:
        upload-files:
          - 'common/config/afile.yml'                 # A file that needs the be send to the remote server
        show:
          - 'common/config/afile.yml'                 # A file that needs to be outputted when deploying
      migrate:
        rbac: true                                    # Execute RBAC migrations
        db: true                                      # Execute `yii migrate`
      sync:
        uploads:
          source: 'shared/uploads/'                   # Base of the sync folder
          dest: 'shared/uploads'                      # 'To' pathname from base deployment path
          create_if_not_exists: true                  # Create the 'To' path if not exist
    shared:
      - 'common/config/config.yaml'

```

In the server section you can add different amount of stages. The keys that are given, are not used by Deployer. Explanation:

KeyExplanationRequired`host:`The server host address (Where should the stage be deployed to)Yes`stage:`The name of the stage. (This stage name can be used when using `dep deploy [stagename]`)Yes`branch:`The branch that the stage contains. (This is the branch that will be pulled on to the remote server)Yes`deploy_path:`The path where the sources should be pulled on the remote server. (Should always be absolute)Yes`ssh_user:`The user that is needed for logging in at the remote server.Yes`settings:`Contains specific settings for the given stage.No`yii/init:`The initialisation enviromnent for Yii2 apps. In a default situation this can be 'Development' or 'Production'.No`yii/overwrite:`Overwrite all the files when perform a php init (can be 'All''None')`files:upload_files`Paths to files that needs to be uploaded to the remote server to the same location (paths are seen from project folder).No`files:show`Shows the content of a file. Prefixed with the release\_path.No`migrate:rbac`Migrates the RBAC functionality of Yii2.No`migrate:db`Migrates the 'normal' database migrationsNo`sync:*`Special feature for syncing remote files with for example a shared folder. That way developers can maintain shared files and sync them to the remote server, without loss of user created files. The uploads key is required when using this functionality, but only used for visual purpose. (rsync)No`sync:source`Path to folder (from project root)When using sync option -&gt; Yes, else no.`sync:dest`Destination path (from deploy path)When using sync option -&gt; Yes, else no.`sync:create_if_not_exists`Create the destination folder if it doesn't exist.No`shared`Shared entities that need to be placed in the shared folderNo### Passwords

[](#passwords)

The module uses forward-agent to grant your user access to the remote server without the need of a password. Follow the following steps to ensure no password is needed:

- Try `ssh-add -L` to see if your public key is added to the agent. If not run: `ssh-add`
- Copy your public key to the remote server's known-hosts with `ssh-copy-id remoteusername@remotehost`
- Try `ssh remoteuser@remotehost`. The server should no longer ask for a password as it is now provided by the agent.

### Remote server access repository

[](#remote-server-access-repository)

To give the deployment server access to your private/public repository on Github, please provide the server's public SSH key as a deployment key in your repository settings.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% 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 ~1 days

Total

10

Last Release

3244d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10651693?v=4)[Johan Kladder](/maintainers/johankladder)[@johankladder](https://github.com/johankladder)

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

---

Top Contributors

[![johankladder](https://avatars.githubusercontent.com/u/10651693?v=4)](https://github.com/johankladder "johankladder (51 commits)")[![StefNijenhuis](https://avatars.githubusercontent.com/u/5689381?v=4)](https://github.com/StefNijenhuis "StefNijenhuis (1 commits)")

---

Tags

deployerdeploymentphpreleazsshyii2

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[wsdltophp/packagegenerator

Generate hierarchical PHP classes based on a WSDL

4351.9M19](/packages/wsdltophp-packagegenerator)[in2code/in2publish_core

Content publishing extension to connect stage and production server

40135.8k](/packages/in2code-in2publish-core)[shopware/deployment-helper

Shopware deployment tools

19305.3k5](/packages/shopware-deployment-helper)[ngmy/webloyer

Webloyer is a Web UI for managing Deployer deployments

2181.1k](/packages/ngmy-webloyer)

PHPackages © 2026

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