PHPackages                             jdlabails/php-project-analyzer-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. jdlabails/php-project-analyzer-bundle

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

jdlabails/php-project-analyzer-bundle
=====================================

Symfony Bundle for PhpProjectAnalyzer

1.5.2(8y ago)1110.8k[2 issues](https://github.com/jdlabails/PhpProjectAnalyzerBundle/issues)MITPHPPHP &gt;=5.6.

Since Sep 15Pushed 8y ago2 watchersCompare

[ Source](https://github.com/jdlabails/PhpProjectAnalyzerBundle)[ Packagist](https://packagist.org/packages/jdlabails/php-project-analyzer-bundle)[ Docs](https://github.com/jdlabails/PhpProjectAnalyzerBundle)[ RSS](/packages/jdlabails-php-project-analyzer-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (10)Versions (30)Used By (0)

Php Project Analyzer Bundle
===========================

[](#php-project-analyzer-bundle)

Gives you consolidated views of analysis results.

[![Build Status](https://camo.githubusercontent.com/b15379600fbff563ac29bb5a7f4455c1aa469f17b8d5857755de6f4394e6673f/68747470733a2f2f7472617669732d63692e6f72672f6a646c616261696c732f50687050726f6a656374416e616c797a657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jdlabails/PhpProjectAnalyzerBundle)[![Total Downloads](https://camo.githubusercontent.com/ea009f11fb4c0900fee633acf46ef9160566103d35ed31c772b58cb3f0546a9b/68747470733a2f2f706f7365722e707567782e6f72672f6a646c616261696c732f7068702d70726f6a6563742d616e616c797a65722d62756e646c652f642f746f74616c2e706e67)](https://packagist.org/packages/jdlabails/php-project-analyzer-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/256f39b7159492d6708c919ac29a525e98b61e1c2982893d98cbf617bcacbaa5/68747470733a2f2f706f7365722e707567782e6f72672f6a646c616261696c732f7068702d70726f6a6563742d616e616c797a65722d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/jdlabails/php-project-analyzer-bundle)[![SensioLabsInsight](https://camo.githubusercontent.com/406b78b267029cb34dd5d9fc595044c9251eaf455797b71847453c650a931df7/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33623033646164392d303161362d346439652d386362352d3732613266633831393064632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/3b03dad9-01a6-4d9e-8cb5-72a2fc8190dc)

It give a view like :

[![](https://raw.githubusercontent.com/jdlabails/PhpProjectAnalyzerBundle/master/ppaIndex.png)](https://raw.githubusercontent.com/jdlabails/PhpProjectAnalyzerBundle/master/ppaIndex.png)

### Features

[](#features)

- Aggregate php analysis metrics
- Offer user-friendly interface
- Execute quick scan of your project
- English or French interfaces
- Links with code coverage report
- Scoring based on quantity and quality metrics
- Enable PhpUnit or Atoum unit tests
- Security checker available

It executes

- Php Mess Detector
- Php Unit Tests
- Atoum tests
- Php Code Sniffer ( + reparation tool via phpcbf)
- Copy-paste detector
- Php Depend
- Php Loc

And parses their report to give a nice view for rapid analysis of your project.

### Install

[](#install)

- composer require jdlabails/php-project-analyzer-bundle --dev
- add bundle to kernel

```
/* app/AppKernel.php */
public function registerBundles()
    {
// ...
        $bundles[] = new JD\PhpProjectAnalyzerBundle\JDPhpProjectAnalyzerBundle();
// ...
}
```

- Add routing

```
# app/config/routing.yml
ppa:
    resource: '@JDPhpProjectAnalyzerBundle/Resources/config/routing.yml'
```

- Add security exception

```
access_control:
    # PPA
    - { path: "^(/[a-z]{2})?/ppa(/[a-z]*)?", roles: IS_AUTHENTICATED_ANONYMOUSLY }
```

- Set your config

```
framework:
    translator: { fallback: %locale% }

jd_php_project_analyzer:
    title:          Php project analyzer
    description:    It's a ouaaaouhh project !

    gitRepositoryURL:      https://github.com/jdlabails/PhpProjectAnalyzerBundle

    # directory to analyze
    srcPath : /home/jd/Dev/ppa/src/JD

    # quantitative metric
    count : true

    # quality metric : copy-paste
    cpd : true

    # quality metric : code sniffer
    cs :
        enable: true
        standard: PSR2

    # security checker
    security: true

    # quality metric : phpdepend
    depend : true

    # quality metric : phploc
    loc : true

    # quality metric : mess detector
    md :
        enable: true
        rules:
            cleancode: true
            codesize: true
            controversial: true
            design: true
            naming: true
            unusedcode: true

    # generate phpdoc
    docs : true

    # testing
    test :
        enable: false
        lib : phpunit       # phpunit || atoum
        phpunitTestSuite : ppa
#        atoumPath : /home/smith/www/projectX/vendor/bin/atoum
#        atoumTestDir : /absolute/path/to/your/test/dir

    # score
    score:
        enable:         true
        csWeight:       100     # between 0 and 100, weighting of code sniffer
        testWeight:     100     # between 0 and 100, weighting of testing
        locWeight:      100     # between 0 and 100, weighting of code coverage
```

- Set assets

```
php app/console assets:install
```

- Set right for ppa directory in the web directory

```
sudo php app/console ppa:init
```

- Add web/ppa in your .gitignore

### Use

[](#use)

- Call  with your nav.
- Click on 'Start Scan'

### update your phar

[](#update-your-phar)

```
cd Resources/_phar
chmod +x  update.sh
./update.sh
```

### Commands available

[](#commands-available)

ppa:analyse:launch ==&gt; launch analysis without web interface ppa:analyse:read ==&gt; read analysis without web interface. The result is in json

### Need contributions

[](#need-contributions)

Examples :

- avoid phar files for dependencies symfony
- refacto code
- unit tests
- download security checker at each scan
- behat

Just make a pull request on master

##### Check style

[](#check-style)

```
bin/phpcs --standard=PSR2 --extensions=php Entities Manager Command Controller DependencyInjection Traits
```

##### Unit Tests

[](#unit-tests)

```
bin/simple-phpunit -c phpunit.xml
```

##### Tip for local project

[](#tip-for-local-project)

Put in your composer.json

```
  "minimum-stability": "dev",
  "prefer-stable": true,
  "repositories": [
    {
      "type": "path",
      "url": "/path/to/your/project/dir/jdlabails-php-project-analyzer-bundle/"
    }
  ],
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Recently: every ~40 days

Total

29

Last Release

3000d ago

Major Versions

v0.13 → v1.02016-02-01

PHP version history (4 changes)0.1PHP &gt;=5.3.2

0.10PHP &gt;=5.4

v1.3.0PHP &gt;=7.0

1.5.2PHP &gt;=5.6.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f4bef30a4ac35fae224715262799c8bdef88236fcc7c94be928285603cce7c7?d=identicon)[jdlabails](/maintainers/jdlabails)

---

Top Contributors

[![jdlabails](https://avatars.githubusercontent.com/u/8875327?v=4)](https://github.com/jdlabails "jdlabails (9 commits)")

---

Tags

analysisatoum-testcodesnifferphpphpcpdphpcsphpmdphpunitsymfony-bundleunit-testPhp Project Analyzer Symfony

### Embed Badge

![Health badge](/badges/jdlabails-php-project-analyzer-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/jdlabails-php-project-analyzer-bundle/health.svg)](https://phpackages.com/packages/jdlabails-php-project-analyzer-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
