PHP code quality project.





Fund package maintenance!

1.2.0 2017-08-02 00:15 UTC


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

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/ 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" />

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

Customize the build process.

Refer to the documentation