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.
- Ruby (tested against 1.8 version)
- Puppet (>= 2.6)
- vcsrepo (git/subversion/...) (if additional coding standard is need, https://github.com/puppetlabs/puppetlabs-vcsrepo)
Currently, the PHP QA Tools project is provisioning the following tools:
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
Watch for the dependency listed in the Modulefile (
rafaelfc/pear), in case you run into
can't find class pear errors.
Inside of a puppet manifest file (let's call it init.pp):
$ 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
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.
Want to contribute?
- Fork me on github!
- Pull requests are very welcome!
- Submit any issue you might eventually find
Copyright (c) 2013 Rafael Felix Correa <firstname.lastname@example.org> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.