Download the PHP package digital-pacific/ci-toolbox without Composer

On this page you can find all versions of the php package digital-pacific/ci-toolbox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ci-toolbox

ci-toolbox

This toolbox contains popular PHP utilities used to ensure stability for continuous integration.

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.

Install - Package

Require the package in your composer.json file and run the composer install command to install it:

Install - Rabbit

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

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.

If everything is installed correctly run:

Which should display:

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.

A patch program is already installed on OSX

Centos Installation:

Ubunutu Installation:

Usage

This toolbox is just a collection of popular PHP utilities with a convenient way to run them using Rabbit.

There are 5 utilities in this toolbox:

The way that Rabbit is setup is to run each of these utilities individually or as a suite.

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.

Here is an example of how to run an individual utility:

Once you finished running the utilities individually you can run the entire suite by using:

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.

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

Bitbucket Pipeline

Bitbucket has a new feature called Pipelines that this toolbox can be utilised for in your PHP projects.

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

An example bitbucket-pipelines.yml file for running this ci-toolbox is below.


All versions of ci-toolbox with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
jakub-onderka/php-parallel-lint Version 0.9.2
jakub-onderka/php-console-highlighter Version 0.3.2
squizlabs/php_codesniffer Version 2.6.0
sebastian/phpcpd Version 2.0.4
phpmd/phpmd Version 2.4.3
phpunit/phpunit Version 4.8.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package digital-pacific/ci-toolbox contains the following files

Loading the files please wait ...