You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sphpera is **S**tatic **ph**p **per**formance **a**nalysis tool designed for finding slowest methods and classes based on functions / methods called in them.
3
+
Sphpera is **S**tatic **ph**p **per**formance **a**nalysis tool designed for finding potentially the slowest methods and classes based on functions / methods called in them.
4
4
5
-
## Installation
6
-
This project is not meant to be run as a dependency, but as separate project.
5
+
## Features
6
+
7
+
### Implemented
8
+
- detection of global function calls
9
+
- multiplication for calls in cycles
10
+
- custom configuration
7
11
8
-
### Composer
9
-
The recommended way is to install this library via composer.
12
+
### Planned
13
+
- detection of class methods calls
14
+
- HTML output similar to PHPUnit
15
+
- detection of multiple implementations - when some interface or class has multiple implementations and there is only this interface injected, we have to decide which implementation will be used for analysis (default the slowest, can be overridden via configuration)
16
+
- multiplication for calls in array_map and similar cycle-style functions
17
+
18
+
## Installation
19
+
This project should not be run as a dependency, but as separate project. Create some directory for it:
10
20
11
21
```shell script
12
22
mkdir sphpera
13
23
cd sphpera
24
+
```
25
+
and follow one of next steps:
26
+
27
+
### use composer
28
+
The recommended way is to install this project via composer.
29
+
30
+
```shell script
14
31
composer require lulco/sphpera
15
32
```
16
33
17
-
### Usage
18
-
Run command
34
+
### git clone
35
+
You can also clone this project directly. Use this for contribution.
Note: Following examples describe how to use sphpera when it is installed via composer.
43
+
44
+
Run command:
45
+
```shell script
20
46
vendor/bin/sphpera analyse dir1 dir2
21
47
```
48
+
49
+
## Configuration
50
+
Create your own configuration file where you set the score for functions / methods and default score. Then use this configuration file as option in `analyse` command.
0 commit comments