2017 © Pedro Peláez
 

project feathers_square

Feathers Square for PHP

image

mlukaszewski/feathers_square

Feathers Square for PHP

  • Tuesday, September 5, 2017
  • by mlukaszewski
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Unstable, please do not use for a moment.

This is a fork of blerou work., (*1)

Done

  • changed PDepend source - PEAR provides only version 1.1.14, now version 2.5.0 will be used (with PHP7 support).
  • added -ignore options (for PDepend)

TODO

  • executing PDepend as part of PHP stack, not an external process.
  • fix Unit Tests, write new one (goal: coverage of all APIs)

Installation (with composer)

composer create-project mlukaszewski/feathers_square

Hopefully-meaningful Metrics

This work based on Turbulence, (*2)

A quick hack based on Michael Feathers' recent work in project churn and complexity, (*3)

Usage

    bin/turbulence_php -repo=/path/to/git/project -out=/tmp/output

It takes /path/to/git/project repository, calculates class/file changes and some kind of complexities, then create an out.json file under /tmp/output (it contains the raw data in JSON format)., (*4)

    bin/turbulence_php -repo=/path/to/git/project -out=/tmp/output -path=src

When -path parameter presents only files (classes) under src/ will be processed., (*5)

If everything went well a viewer.html will be generated under output (/tmp/output). It has no external dependency, so just launch it with your favorite browser., (*6)

    google-chrome /tmp/output/viewer.html

Example

Let's create the metrics of Twig template engine:, (*7)

    git clone git://github.com/blerou/turbulence.php.git
    git clone git://github.com/fabpot/Twig.git
    turbulence.php/bin/turbulence_php -repo=Twig -out=/tmp/Twig -path=lib
    google-chrome /tmp/Twig/viewer.html

Dependencies

It uses PDepend to calculate complexity., (*8)

use composer to install this dependency:, (*9)

composer install

The Versions

05/09 2017

dev-master

9999999-dev

Feathers Square for PHP

  Sources   Download

MIT

The Requires

 

by Michal Lukaszewski

05/09 2017

1.0.0-RC1

1.0.0.0-RC1

Feathers Square for PHP

  Sources   Download

MIT

The Requires

 

by Michal Lukaszewski