Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bronek89 authored Sep 5, 2017
1 parent 228cc02 commit c878d4f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# code-complexity

Class for check code complexity score of php code.

## Install

```
composer require bronek89/code-complexity
```

## Usage

```php
<?php

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

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

0 comments on commit c878d4f

Please sign in to comment.