Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.29 KB

README.md

File metadata and controls

53 lines (42 loc) · 1.29 KB

Concourse PHP Driver

The offical PHP driver for Concourse.

Requirements

  • PHP 5.4+

Quickstart

Installation

Install via composer

composer require cinchapi/concourse-driver-php

Usage

<?php
$concourse = Concourse::connect(); // connects to localhost:1717 by default

Developer Setup

All commands are run from the root of the concourse-driver-php project.

  1. Use Composer to get local copies of all necessary dependencies.
$ php composer.phar install

The Build System

We use phake as the build system for the PHP Driver. The phake executable is located in the root of the project.

Running tests

You can run all the test cases using the test task.

$ ./phake test

If you want to run a single test case/class, you can pass the containing file as an argument to the test task

$ ./phake test class=tests/<filename>

Generating Documentation

$ ./phake docs

Publishing

The PHP driver is made available via Packagist. You can upload by doing the following:

$ ./phake upload-packagist