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

ActiveProject

stef686/codeigniter-deployer
============================

A Deployment Tool for CodeIgniter 3.0

02.2k↓15.5%PHP

Since Apr 12Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

CodeIgniter Deployer
====================

[](#codeigniter-deployer)

[![Latest Stable Version](https://camo.githubusercontent.com/7c23b7ca0c1682b6cdcd1db497c638aebfc2e421a12b5a2dfdfed635cfc300a3/68747470733a2f2f706f7365722e707567782e6f72672f737465663638362f636f646569676e697465722d6465706c6f7965722f762f737461626c65)](https://packagist.org/packages/stef686/codeigniter-deployer) [![Total Downloads](https://camo.githubusercontent.com/ea7b5f4ea5f0e250bdd329b8d1acc6cb2dbcfbd573edc778df5bc33a545d5bce/68747470733a2f2f706f7365722e707567782e6f72672f737465663638362f636f646569676e697465722d6465706c6f7965722f646f776e6c6f616473)](https://packagist.org/packages/stef686/codeigniter-deployer) [![Latest Unstable Version](https://camo.githubusercontent.com/a2e0b2766b7c35064fe1a7dae5ee17a0c69141260b3ee088cd6760cfb48257b3/68747470733a2f2f706f7365722e707567782e6f72672f737465663638362f636f646569676e697465722d6465706c6f7965722f762f756e737461626c65)](https://packagist.org/packages/stef686/codeigniter-deployer) [![License](https://camo.githubusercontent.com/d604de9e8f9479df0488c7beec2cc2dd33462db79fef05e4a45a855c0bae345d/68747470733a2f2f706f7365722e707567782e6f72672f737465663638362f636f646569676e697465722d6465706c6f7965722f6c6963656e7365)](https://packagist.org/packages/stef686/codeigniter-deployer)

This is a fork of [Kenjis](kenjis/codeigniter-deployer) original package, updated for Deployer 6.1.0

A Deployment Tool for [CodeIgniter](https://github.com/bcit-ci/CodeIgniter) 3.1.\*

You can deploy CodeIgniter with one command.

This is based on [Deployer](http://deployer.org/) 6.1.0

Folder Structure
----------------

[](#folder-structure)

```
codeigniter/
└── deploy/
     ├── deploy.php ... config file for Deployer
     ├── deploy.sh  ... script to deploy
     └── logs/

```

Requirements
------------

[](#requirements)

- PHP 7.0 or later
- Composer
- Git
- SSH
- Shell

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

[](#installation)

Install this project with Composer:

```
$ cd /path/to/codeigniter/
$ composer require stef686/codeigniter-deployer:1.0.x@dev --dev

```

Install `deploy` folder to your CodeIgniter application folder:

```
$ php vendor/stef686/codeigniter-deployer/install.php

```

- Above command always overwrites exisiting files.
- You must run it at CodeIgniter project root folder.

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

[](#configuration)

Configure `deploy/deployer.php`.

### Servers

[](#servers)

```
// Your production server
server('prod', 'your.server.example.com', 22)
    ->user('username')
    ->forwardAgent()
    ->stage('production')
    ->env('branch', 'master')
    ->env('deploy_path', '/var/www/your-codeigniter-app');
```

See  for details.

### Repository

[](#repository)

```
// Your Git repository
set('repository', 'git@github.com:org/your-codeigniter-app.git');
```

You need `git` command on your servers, and make sure you can `git clone` on the servers.

### Reference

[](#reference)

-

Configure Your Servers
----------------------

[](#configure-your-servers)

### Apache

[](#apache)

See the sample below. In this case, `/var/www/your-codeigniter-app` is a base folder.

```
your-codeigniter-app/
├── current -> /var/www/your-codeigniter-app/releases/20150529181638
└── releases/
     ├── 20150529180505/
     ├── 20150529181203/
     └── 20150529181638/

```

Each deployment is installed in `releases/YYYYMMDDHHMMSS` folder.

The current release is `your-codeigniter-app/current` folder, and it is a symbolic link to `releases/20150529181638` folder.

So if you use [codeigniter-composer-installer](https://github.com/stef686/codeigniter-composer-installer)'s folder structure, your Apache configuratoin is like this:

```
DocumentRoot /var/www/your-codeigniter-app/current/public

```

If you use CodeIgniter as the default folder structure, your Apache configuratoin is like this:

```
DocumentRoot /var/www/your-codeigniter-app/current

```

### sudo

[](#sudo)

Deployer will try to get write permission with the `sudo` command, so this command has to be running without prompt password and without tty.

Here is an example of configuration:

```
Defaults:username !requiretty

username   ALL=(ALL) NOPASSWD: /usr/bin/setfacl

```

If you don't need `sudo` for your deployment, you can set in `deploy/deployer.php`.

```
set('writable_use_sudo', false);
```

How to Deploy
-------------

[](#how-to-deploy)

```
$ cd /path/to/codeigniter/
$ cd deploy/
$ sh deploy.sh

```

Related Projects for CodeIgniter 3.0
------------------------------------

[](#related-projects-for-codeigniter-30)

- [CodeIgniter Composer Installer](https://github.com/kenjis/codeigniter-composer-installer)
- [Cli for CodeIgniter 3.0](https://github.com/kenjis/codeigniter-cli)
- [CI PHPUnit Test](https://github.com/kenjis/ci-phpunit-test)
- [CodeIgniter Simple and Secure Twig](https://github.com/kenjis/codeigniter-ss-twig)
- [CodeIgniter Doctrine](https://github.com/kenjis/codeigniter-doctrine)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.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.

### Community

Maintainers

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

---

Top Contributors

[![kenjis](https://avatars.githubusercontent.com/u/87955?v=4)](https://github.com/kenjis "kenjis (12 commits)")[![stef686](https://avatars.githubusercontent.com/u/917453?v=4)](https://github.com/stef686 "stef686 (5 commits)")

### Embed Badge

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

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

PHPackages © 2026

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