phpcq/phpcq

PHP code quality project.

1.1.4 2017-05-19 01:07 UTC

README

Version License Downloads

PHP code quality project

Code quality is an important part for growing projects, to raise and hold the quality of your software. The PHP code quality project helps you automate certain checks with continuous integration. PHPCQ build on well known projects like PHP CodeSniffer, PHPMD, Travis CI or Scrutinizer CI.

For detailed description please visit our project website phpcq.org.

Quick usage tutorial

Add to composer.json

Add to your composer.json in the require-dev section:

"phpcq/phpcq": "~1.0"

You will also have to specify the dependencies of the various tasks, refer to the documentation.

Define your build

A good starting point is to copy the file example/build.xml and example/build.default.properties to your project root.

If you want to start from scratch, you need at least a build.xml file in your repository with at the following content:

<?xml version="1.0" encoding="UTF-8"?>
<project name="my-project" default="build" description="Automated build of my project">
    <!-- import the main tasks -->
    <import file="vendor/phpcq/phpcq/phpcq.main.xml" />
</project>

If you want to use our default settings, you are all set.

Customize the build process.

Refer to the documentation