PHPackages                             techpivot/phalcon-ci-installer - 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. techpivot/phalcon-ci-installer

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

techpivot/phalcon-ci-installer
==============================

Composer integration for PHP applications to install the Phalcon framework as an extension in the PHP runtime for various hosted CI services including TravisCI, CircleCI, Scrutinizer, Shippable and Codeship.

1.0.7(9y ago)26130.7k↓50%7[1 issues](https://github.com/techpivot/phalcon-ci-installer/issues)[1 PRs](https://github.com/techpivot/phalcon-ci-installer/pulls)7MITShellPHP ^5.4|^5.5|^5.6|^7.0

Since Oct 17Pushed 5y ago4 watchersCompare

[ Source](https://github.com/techpivot/phalcon-ci-installer)[ Packagist](https://packagist.org/packages/techpivot/phalcon-ci-installer)[ RSS](/packages/techpivot-phalcon-ci-installer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (7)

Phalcon CI Installer
====================

[](#phalcon-ci-installer)

[![CircleCI](https://camo.githubusercontent.com/2282ecfee92e0a8b1dce0e166d1859380cd56331c191ea40cc5f508f7c08771b/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f746f6b656e2f653066336339383463393336643838616432306361396462343131326630333264323739333061662f70726f6a6563742f746563687069766f742f7068616c636f6e2d63692d696e7374616c6c65722f6d61737465722e7376673f6c6162656c3d636972636c656369267374796c653d666c61742d737175617265)](https://circleci.com/gh/techpivot/phalcon-ci-installer)[![Travis CI](https://camo.githubusercontent.com/6b0d5fefd3b43d8c28bd5f04b585e916e2b224da0399d082b6c393a6530a5c2b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746563687069766f742f7068616c636f6e2d63692d696e7374616c6c65722f6d61737465722e7376673f6c6162656c3d7472617669736369267374796c653d666c61742d737175617265)](https://travis-ci.org/techpivot/phalcon-ci-installer)[![Scrutinizer](https://camo.githubusercontent.com/d043ebd47ebb1b4ca2e648dc5633aec2734c4ccde9e74a7db827d380b7dcb62b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f66696c702f77686f6f70732e7376673f6c6162656c3d7363727574696e697a6572267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/techpivot/phalcon-ci-installer/)[![Codeship](https://camo.githubusercontent.com/b67c2820ad69a9aabc1e84538cbc13f85db0b2c6a049bb1dbcb81b4d1bd9287f/68747470733a2f2f696d672e736869656c64732e696f2f636f6465736869702f35343661626664302d333033372d303133342d626433642d3736303361663734343735392f6d61737465722e7376673f6c6162656c3d636f646573686970267374796c653d666c61742d737175617265)](https://codeship.com/projects/109153)[![Shippable](https://camo.githubusercontent.com/7f7d8aeb250dbd30d40be3465d3886e9a4d736c188edd8f456715c51dae80943/68747470733a2f2f696d672e736869656c64732e696f2f736869707061626c652f3536323034643934313839356361343437343165313538332f6d61737465722e7376673f6c6162656c3d736869707061626c65267374796c653d666c61742d737175617265)](https://app.shippable.com/projects/56204d941895ca44741e1583)

[![Latest Version](https://camo.githubusercontent.com/4ffbf14f2b918b38766b846de305cd50f82bedee7969e2ce685fe1838412b7f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746563687069766f742f7068616c636f6e2d63692d696e7374616c6c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/techpivot/phalcon-ci-installer)[![Total Downloads](https://camo.githubusercontent.com/7d253b87983c75190eafc0d5f4aa9b37dab22428b0c8a0ffb29d90c51001aa0b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746563687069766f742f7068616c636f6e2d63692d696e7374616c6c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/techpivot/phalcon-ci-installer)[![Software License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/techpivot/phalcon-ci-installer/master/LICENSE)

Composer integration for PHP applications to install the [Phalcon](https://phalconphp.com) framework as an extension in the PHP runtime for various hosted CI services including CircleCI, Travis CI, Scrutinizer, Codeship, and Shippable.

Features
--------

[](#features)

- Phalcon extension loaded in PHP runtime
- Native cache support to prevent rebuilding Phalcon from source
- Auto-detection of latest tagged Phalcon version
- Install specific Phalcon versions, tags and releases *(Since 1.0.2)*
- Supports PHP7 and Phalcon 3.0.x *(Since 1.0.4)*

Version Compatibility
---------------------

[](#version-compatibility)

The following table outlines general compability of Phalcon inside various CI environments.

PHP CI VersionPhalcon Version(s)CI Environment5.3✖ (Not supported)-5.4✖ (Not supported)-5.5✔ `master`, `2.0.x`, `3.0.x`✔ CircleCI, Travis CI, Scrutinizer, Codeship, Shippable5.6✔ `master`, `2.0.x`, `3.0.x`✔ CircleCI, Travis CI, Scrutinizer, Codeship, Shippable7.0✔ `3.0.x`✔ CircleCI, Travis CI, Scrutinizer, Codeship, ShippableInstallation
------------

[](#installation)

1. Add the `techpivot/phalcon-ci-installer` repository into the **require-dev** section of your `composer.json` as follows:

```
  "require-dev": {
      "techpivot/phalcon-ci-installer": "~1.0"
  }
```

1. Update your CI script to execute the **vendor/bin/install-phalcon.sh** installer in the relevant section. See the examples below for various CI providers.

Options
-------

[](#options)

The installer takes one optional argument that can be used to specify a specific branch or tag.

Examples:

```
# Install latest version from default branch
vendor/bin/install-phalcon.sh

# Install latest revision from branch "3.0.x"
vendor/bin/install-phalcon.sh 3.0.x

# Install specific release tag "phalcon-v2.0.9"
vendor/bin/install-phalcon.sh phalcon-v2.0.9
```

> **Note:** The Phalcon CI installer is designed to cache the resulting binaries that correspond to the Phalcon/PHP version. Specifing a release or tagged version will result in the best performance as subsequent builds (depending on CI container/settings) will be cached. Building from a branch (including the default master option) will result in a Phalcon rebuild every time the installer detects a new version that is not yet cached.

CI Environments
---------------

[](#ci-environments)

### CircleCI

[](#circleci)

**`circle.yml`**

```
machine:
  php:
    version: 5.6.14

dependencies:
  cache_directories:
    - vendor
    - ~/cphalcon

  post:
    - vendor/bin/install-phalcon.sh phalcon-v2.0.13

test:
  override:
    - vendor/bin/phpunit
```

> **Note:** In order to cache data for faster builds, ensure the `cache_directories` directives are specified as outlined above.

> **Note:** Ensure that the `vendor/bin/circleci-install-phalcon.sh` is executed in the **post** phase, which will allow for the inclusion of the `techpivot/phalcon-ci-installer` repository during the composer installation at inference or override phase.

> **Reference:** CircleCI PHP Versions – [Ubuntu 14.04](https://circleci.com/docs/build-image-trusty/#php) • [Ubuntu 12.04](https://circleci.com/docs/build-image-precise/#php)

### Travis CI

[](#travis-ci)

**`.travis.yml`**

```
language: php

php:
  - 5.5
  - 5.6
  - 7.0

cache:
  directories:
    - vendor
    - ~/.composer/cache
    - ~/cphalcon

before_install:
  - composer install --prefer-source --no-interaction
  - vendor/bin/install-phalcon.sh 3.0.x

script:
  - vendor/bin/phpunit

notifications:
  email: false
```

> **Note:** Multiple PHP versions can be specified and each one will be cached independently; however, the phalcon target ref (branch or tag) will be applied for all builds

> **Reference:** [TravisCI PHP Versions](https://docs.travis-ci.com/user/languages/php#Choosing-PHP-versions-to-test-against)

### Scrutinizer

[](#scrutinizer)

**`.scrutinizer.yml`**

```
build:
    environment:
        php:
            version: 7.0.8

    cache:
        directories:
            - ~/cphalcon

    dependencies:
        override:
            - composer install --prefer-source --no-interaction
        after:
            - vendor/bin/install-phalcon.sh 3.0.x
```

> **Note:** No need to include the `vendor/` cache directory as this is cached automatically.

> **Reference:** [ScrutinizerCI PHP Versions](https://scrutinizer-ci.com/docs/configuration/build#php)

### Codeship

[](#codeship)

Sample **Setup Commands**

```
phpenv local 5.6
php --version
composer install --prefer-source --no-interaction
vendor/bin/install-phalcon.sh
```

> **Reference:** [Codeship CI PHP Versions](https://codeship.com/documentation/languages/php/#versions)

### Shippable

[](#shippable)

**`shippable.yml`**

```
language: php
php:
  - 7.0

build:
  cache: true

  cache_dir_list:
    - $SHIPPABLE_BUILD_DIR/vendor
    - ~/cphalcon

  ci:
    - composer install --prefer-source --no-interaction
    - bin/install-phalcon.sh 3.0.x
```

> **Reference:** [Shippable PHP Versions](http://docs.shippable.com/ci_languages/#php)

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90.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 ~76 days

Recently: every ~100 days

Total

8

Last Release

3319d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2028c7b5e1e01380a709478988e8bcdff58b5aec2c0709e991a4f6c7ba9502ec?d=identicon)[virgofx](/maintainers/virgofx)

---

Top Contributors

[![virgofx](https://avatars.githubusercontent.com/u/739719?v=4)](https://github.com/virgofx "virgofx (48 commits)")[![fischmart](https://avatars.githubusercontent.com/u/153713174?v=4)](https://github.com/fischmart "fischmart (2 commits)")[![zachleigh](https://avatars.githubusercontent.com/u/5616626?v=4)](https://github.com/zachleigh "zachleigh (2 commits)")[![gabel](https://avatars.githubusercontent.com/u/242039?v=4)](https://github.com/gabel "gabel (1 commits)")

---

Tags

cicirclecicodeshipphalconphpscrutinizershippabletravisciphpcontinuous integrationCircleCICodeshipphalconTechPivottraviscishippableScrutinizerCI

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/techpivot-phalcon-ci-installer/health.svg)

```
[![Health](https://phpackages.com/badges/techpivot-phalcon-ci-installer/health.svg)](https://phpackages.com/packages/techpivot-phalcon-ci-installer)
```

###  Alternatives

[ondram/ci-detector

Detect continuous integration environment and provide unified access to properties of current build

22249.4M33](/packages/ondram-ci-detector)[php-mcp/server

PHP SDK for building Model Context Protocol (MCP) servers - Create MCP tools, resources, and prompts

828280.5k25](/packages/php-mcp-server)[renoki-co/laravel-php-k8s

Just a simple port of renoki-co/php-k8s for easier access in Laravel.

88218.2k](/packages/renoki-co-laravel-php-k8s)[renoki-co/laravel-healthchecks

Laravel Healthchecks is a simple controller class that helps you build your own healthchecks endpoint without issues.

5654.9k](/packages/renoki-co-laravel-healthchecks)[epam/ci-bundle

This bundle provides functionality for Continuous Integration &amp; Automated Deployments for Symfony-based projects

297.6k](/packages/epam-ci-bundle)

PHPackages © 2026

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