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

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

oanhnn/deployer-example
=======================

Example project for deployment PHP project (Slim Framwork) by Deployer

v1.1.0(10y ago)344712[1 PRs](https://github.com/oanhnn/deployer-example/pulls)MITShellPHP &gt;=5.4.0CI failing

Since May 15Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/oanhnn/deployer-example)[ Packagist](https://packagist.org/packages/oanhnn/deployer-example)[ RSS](/packages/oanhnn-deployer-example/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Introduction
============

[](#introduction)

[![Join the chat at https://gitter.im/oanhnn/deployer-example](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/oanhnn/deployer-example?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

An example for use [Deployer](http://deployer.org) to deployment PHP project.
In this example, i'm will deploy a project using [Slim framework](https://github.com/slimphp/Slim) follow my [slim-skeleton](https://github.com/oanhnn/slim-skeleton)

See  for more information and documentation about Deployer.

Requirements
============

[](#requirements)

- PHP 5.6.0 and up.

That's all!

> If PHP 5.4.x or 5.5.x, please using branch 3.x (using Deployer 3.x)

You can install [ssh2 extension](http://php.net/manual/en/book.ssh2.php) to speedup deployment process and enable [sockets](http://php.net/manual/en/book.sockets.php) for parallel deployment.

Installation
============

[](#installation)

Clone with `git` and run `composer install`

```
$ git clone git@github.com:oanhnn/deployer-example.git
$ cd
$ composer install
```

or using [`composer`](http://getcomposer.org)

```
$ composer create-project oanhnn/deployer-example
```

Usage
=====

[](#usage)

> In this example using forward agent feature, to run it, please [enable `ssh` forward agent](https://github.com/oanhnn/deployer-example/blob/master/docs/enable-feature-ssh-forward-agent.md) the first. If using ssh2 extension, please require package `"herzult/php-ssh": "~1.0"` and add line `set('ssh_type', 'ext-ssh2');` to `deploy.php` file before deployment. If using native ssh client, please add line `set('ssh_type', 'native');` to `deploy.php` file before deployment.

Customize `stage/dev.php` or make a copy and write your own stages.

First deployment:

```
$ bin/dep deploy:configure
$ bin/dep deploy
```

Next deployments:

```
$ bin/dep deploy
```

Using options `-vvv` for debug

```
$ bin/dep deploy  -vvv
```

Contributing
------------

[](#contributing)

All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send a pull request.

To ensure a consistent code base, you should make sure the code follows the [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md).

If you would like to help take a look at the [list of issues](https://github.com/oanhnn/deployer-example/issues).

License
-------

[](#license)

This project is released under the MIT License.
Copyright © 2015-2017 Oanh Nguyen.
Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance59

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~48 days

Total

3

Last Release

3926d ago

### Community

Maintainers

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

---

Top Contributors

[![oanhnn](https://avatars.githubusercontent.com/u/1757120?v=4)](https://github.com/oanhnn "oanhnn (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![darynmitchell](https://avatars.githubusercontent.com/u/3178872?v=4)](https://github.com/darynmitchell "darynmitchell (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

deploy-tooldeployerdeployment

### Embed Badge

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

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

###  Alternatives

[sourcebroker/deployer-extended

Library with some additional tasks for deployer (deployer.org).

25275.4k9](/packages/sourcebroker-deployer-extended)[ngmy/webloyer

Webloyer is a Web UI for managing Deployer deployments

2181.1k](/packages/ngmy-webloyer)[florianmoser/bedrock-deployer

Deployer recipes for Roots Bedrock

5414.4k1](/packages/florianmoser-bedrock-deployer)[n98/n98-deployer

netz98 deployer tasks, recipes, configuration

2543.6k1](/packages/n98-n98-deployer)[setono/deployer-cron

Use the Setono cron builder to generate cron files in your deployment process

1224.0k](/packages/setono-deployer-cron)

PHPackages © 2026

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