Skip to content

Commit c878d4f

Browse files
authored
Create README.md
1 parent 228cc02 commit c878d4f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# code-complexity
2+
3+
Class for check code complexity score of php code.
4+
5+
## Install
6+
7+
```
8+
composer require bronek89/code-complexity
9+
```
10+
11+
## Usage
12+
13+
```php
14+
<?php
15+
16+
$calculator = new \Bronek\CodeComplexity\CodeComplexityCalculator();
17+
$complexityScore = $calculator->calculate(file_get_contents('file.php'));
18+
19+
echo "Code Complexity of file file.php is $complexityScore"
20+
```

0 commit comments

Comments
 (0)