PHPackages                             santer/code-quality-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. santer/code-quality-bundle

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

santer/code-quality-bundle
==========================

Quick basic way to QA your Symfony application

14HTML

Since Nov 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rusanter/DevToolsCodeQualityBundle)[ Packagist](https://packagist.org/packages/santer/code-quality-bundle)[ RSS](/packages/santer-code-quality-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DevToolsCodeQualityBundle
=========================

[](#devtoolscodequalitybundle)

A simple and quick way to QA your Symfony application.

This Bundle is using the following tools to check your code:

- [PHPLOC](http://github.com/sebastianbergmann/phploc)
- [PHP\_Depend](http://pdepend.org/)
- [PHP Mess Detector](http://phpmd.org/)
- [PHP Copy/Paste Detector](http://github.com/sebastianbergmann/phpcpd)
- [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)

The result is presented as a set of html pages located inside your web directory. Fire up  file through a web server (this is important as the json/xml won't load into the page from file system).

This Bundle is not the replacement of something like [Jenkins for PHP](http://jenkins-php.org/) or [Sonar](http://www.sonarqube.org/).
But it can help you to maintain quality of your code from the very beginning.

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your Symfony project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require --dev santer/code-quality-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.
The bundle will be installed as a dev-dependency, so it will not affect your production environment.

Step 2: Enable the Bundle
-------------------------

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project. Please ensure you are registering the bundle only for development environments.

```
