Skip to content

bronek89/code-complexity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-complexity

Class for check code complexity score of php code.

Install

composer require bronek/code-complexity

Usage

<?php

$calculator = new \Bronek\CodeComplexity\CodeComplexityCalculator();
$complexityScore = $calculator->calculate(file_get_contents('file.php'));

echo "Code Complexity of file file.php is $complexityScore" 

About

Class for check code complexity score of php code.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages