2017 © Pedro Peláez

library ci-toolbox

This toolbox combines other various popular PHP tools and runs them easily with Rabbit



This toolbox combines other various popular PHP tools and runs them easily with Rabbit

  • Wednesday, March 29, 2017
  • by digitalpacific
  • Repository
  • 6 Watchers
  • 1 Stars
  • 545 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown



This toolbox contains popular PHP utilities used to ensure stability for continuous integration., (*1)

Within this package you will find a rabbit.yaml file which is used to run all the included utilities. Rabbit is an easy to install Python application https://github.com/ouijan/rabbit., (*2)

Install - Package

Require the package in your composer.json file and run the composer install command to install it:, (*3)

    "require-dev": {
        "digital-pacific/ci-toolbox": "0.*"

Install - Rabbit

Rabbit is a Python module that can be installed via pip, visit Rabbit's repo for installation instructions., (*4)

Once Rabbit has been installed copy the appropriate yaml file from the rabbit folder into the root directory of your code. Rename the file rabbit.yaml., (*5)

If everything is installed correctly run:, (*6)

$ rabbit

Which should display:, (*7)

Usage: rabbit [OPTIONS] COMMAND [ARGS]...

  --help  Show this message and exit.

  duplicates     Uses PHPCPD to detect duplicate lines of code
  lint           Uses parallel-lint to parse the current...
  rules          Uses PHP Mess Detector to run code against...
  separator      Separator to go in-between different commands
  unittest       Uses PHPUnit to run unit tests on the...
  utility-suite  Complete testing suite.

Install - Patch

This toolbox is just a collection of other utilities that have their own dependencies. One of those dependencies is a program called patch., (*8)

A patch program is already installed on OSX, (*9)

Centos Installation:, (*10)

$ yum install patch

Ubunutu Installation:, (*11)

$ apt-get install patch


This toolbox is just a collection of popular PHP utilities with a convenient way to run them using Rabbit., (*12)

There are 5 utilities in this toolbox:, (*13)

The way that Rabbit is setup is to run each of these utilities individually or as a suite., (*14)

If you are importing this package into an existing project it is recommended that first run each utility individually, fixing up problems that are reported and tweaking the rabbit.yaml file to suite your projects needs before running the the entire suite of utilities., (*15)

Here is an example of how to run an individual utility:, (*16)

$ cd /path/to/the/root/of/your/application
$ rabbit lint

Once you finished running the utilities individually you can run the entire suite by using:, (*17)

$ rabbit utility-suite

This command runs each individual utility and exits with that utilities exit code. So if during the execution of this command the first utility has an exit code that is not 0 no other utilities will run after it. This is useful in a continuous integration environment where a script could call this single command to run the entire suite and be confident that if the suite exits with a code of 0 then everything has passed., (*18)

If you need a reminder of the different Rabbit commands already setup, you can either view the rabbit.yaml file or run:, (*19)

$ rabbit

Bitbucket Pipeline

Bitbucket has a new feature called Pipelines that this toolbox can be utilised for in your PHP projects., (*20)

A docker image has been created specifically for use with this toolbox and can be found at php-ci-toolbox., (*21)

An example bitbucket-pipelines.yml file for running this ci-toolbox is below., (*22)

image: gblankenship/php-ci-toolbox:latest
    - step:
          - composer -V
          - composer install
          - cp vendor/digital-pacific/ci-toolbox/rabbit/laravel.rabbit.yaml ./rabbit.yaml
          - rabbit utility-suite

The Versions

29/03 2017


9999999-dev https://github.com/DigitalPacific/ci-toolbox.git

This toolbox combines other various popular PHP tools and runs them easily with Rabbit

  Sources   Download

Apache 2.0

The Requires


by Garret Blankenship

29/03 2017
29/03 2017
29/03 2017
29/03 2017
28/03 2017
11/05 2016
28/04 2016