Forge Home

phpqatools

Manage PHP QA Tools (http://phpqatools.org) using Puppet

11,419 downloads

10,527 latest version

2.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.1.0 (latest)
  • 1.0.1
  • 1.0.0
released Aug 16th 2013

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'rafaelfc-phpqatools', '1.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add rafaelfc-phpqatools
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install rafaelfc-phpqatools --version 1.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

rafaelfc/phpqatools — version 1.1.0 Aug 16th 2013

PHP QA Tools

PHP QA Tools enables provisioning most of the quality tools for PHP using Puppet. Refer to http://phpqatools.org for more information.

Dependencies

Tools

Currently, the PHP QA Tools project is provisioning the following tools:

  • PHP_PMD
  • PDepend
  • PHPCPD
  • Phing
  • PHPUnit
  • PHPLOC
  • PHPDCD
  • PHP_CodeSniffer
  • Bytekit

Installation

From the command line:

$ puppet module install rafaelfc/phpqatools

It will download and install the latest release from the official Puppet Modules Repository, under the phpqatools directory. Watch for the dependency listed in the Modulefile (rafaelfc/pear), in case you run into can't find class pear errors.

Usage

Inside of a puppet manifest file (let's call it init.pp):

include phpqatools

Then:

$ puppet apply init.pp

Using Hiera with additional coding standard:

classes:
    - phpqatools
    - git
phpqatools::standard_hash:
    '/usr/share/pear/PHP/CodeSniffer/Standards/Symfony2':
        ensure: latest
        provider: git
        source: 'git://github.com/opensky/Symfony2-coding-standard.git'
        revision: 'master'
'/usr/share/pear/PHP/CodeSniffer/Standards/MyCompany':
    ensure: latest
    provider: git
    source: 'git://github.com/MyCompany/coding-standard.git'
    revision: 'master'
phpqatools::default_standard: Symfony2

Known issues

This module was written to cover only CentOS and Redhat distros (it's tested against CentOS 5.9 and CentOS 6.4). I would really appreciate some help to make it more platform-indepent.

Contributing

Want to contribute?

  • Fork me on github!
  • Pull requests are very welcome!
  • Submit any issue you might eventually find