All Projects → phpmetrics → Phpmetrics

phpmetrics / Phpmetrics

Licence: mit
Beautiful and understandable static analysis tool for PHP

Programming Languages

PHP
23972 projects - #3 most used programming language
CSS
56736 projects
javascript
184084 projects - #8 most used programming language
Makefile
30231 projects
Roff
2310 projects
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to Phpmetrics

Sonar Java
☕️ SonarSource Static Analyzer for Java Code Quality and Security
Stars: ✭ 745 (-65.83%)
Mutual labels:  quality, static-analyzer
Jpeek
Java Code Static Metrics (Cohesion, Coupling, etc.)
Stars: ✭ 168 (-92.29%)
Mutual labels:  quality, metrics
Dart Code Metrics
Software analytics tool that helps developers analyse and improve software quality.
Stars: ✭ 96 (-95.6%)
Mutual labels:  quality, metrics
sonarlint4netbeans
SonarLint integration for Apache Netbeans
Stars: ✭ 23 (-98.94%)
Mutual labels:  quality, static-analyzer
Sonarondocker
🐳 📡 Docker way of running SonarQube + any DB
Stars: ✭ 25 (-98.85%)
Mutual labels:  quality, static-analyzer
Piqa
PyTorch Image Quality Assessement package
Stars: ✭ 108 (-95.05%)
Mutual labels:  quality, metrics
Cppdep
C/C++ Dependency Analyzer: a rewrite of John Lakos' dep_utils (adep/cdep/ldep) from "Large-Scale C++ Software Design"
Stars: ✭ 115 (-94.72%)
Mutual labels:  quality, metrics
Stats
Go package for abstracting stats collection
Stars: ✭ 164 (-92.48%)
Mutual labels:  metrics
Metrics
Metrics Query Engine
Stars: ✭ 168 (-92.29%)
Mutual labels:  metrics
Stackdriver exporter
Google Stackdriver Prometheus exporter
Stars: ✭ 164 (-92.48%)
Mutual labels:  metrics
Ostent
Ostent is a server tool to collect, display and report system metrics.
Stars: ✭ 171 (-92.16%)
Mutual labels:  metrics
Query Exporter
Export Prometheus metrics from SQL queries
Stars: ✭ 166 (-92.39%)
Mutual labels:  metrics
Skydive
An open source real-time network topology and protocols analyzer
Stars: ✭ 2,086 (-4.31%)
Mutual labels:  metrics
Metrics
Implementation-agnostic metrics for assessing open source community health. Maintained by the CHAOSS Metrics Committee.
Stars: ✭ 165 (-92.43%)
Mutual labels:  metrics
Jscpd
Copy/paste detector for programming source code.
Stars: ✭ 2,397 (+9.95%)
Mutual labels:  quality
Github Monitoring
Monitor your GitHub Repos with Docker & Prometheus
Stars: ✭ 163 (-92.52%)
Mutual labels:  metrics
Vividus
Vividus is all in one test automation tool
Stars: ✭ 170 (-92.2%)
Mutual labels:  quality
Go Statsd Client
statsd client for Go
Stars: ✭ 163 (-92.52%)
Mutual labels:  metrics
Rouge 2.0
ROUGE automatic summarization evaluation toolkit. Support for ROUGE-[N, L, S, SU], stemming and stopwords in different languages, unicode text evaluation, CSV output.
Stars: ✭ 167 (-92.34%)
Mutual labels:  metrics
Logi Kafkamanager
一站式Apache Kafka集群指标监控与运维管控平台
Stars: ✭ 3,280 (+50.46%)
Mutual labels:  metrics

PhpMetrics

License Build Status Latest Stable Version Slack

Standard report

PhpMetrics

PhpMetrics provides metrics about PHP project and classes, with beautiful and readable HTML report.

Documentation | Twitter | Contributing



Quick start

composer require phpmetrics/phpmetrics --dev
php ./vendor/bin/phpmetrics --report-html=myreport <folder-to-analyze>

Then open the generated ./myreport/index.html file in your browser.

Configure

Use the --config=<file>.json option. For example:

{
    "includes": [   // directory and files to analyze, relative to config file directory 
        "src"
    ],
    "exclude": [    // regex of files (or directory) to exclude from analyze
      "tests"
    ],
    "report": {     // list of reports to generate (html, json, csv or violation)
        "html": "/tmp/report/",             // destination directory of HTML report 
        "csv": "/tmp/report.csv",           // destination file for CSV report
        "json": "/tmp/report.json",         // destination file for JSON report
        "violations": "/tmp/violations.xml" // destination file for XML violations report
    },
    "groups": [     // "layers" of code. You can group your classes and packages by regex, 
                    // to visualise specific HTML report for each of them
        {
            "name": "Component",      // name of the layer
            "match": "!component!i"   // regular expression used to match the group (based on 
                                      // the name of the fully qualified class name)
                                      // remember to double escape (for json, then for regex): 
                                      // set "!\\\\MyPackage\\\\!" if you want to capture  
                                      // expression "\MyPackage\"
        },
        {
            "name": "Example",
            "match": "!example!"
        }
    ],
    "plugins": {
        "git": {
            "binary": "git"           // if defined, runs git analyze
        },
        "junit": {
            "file": "/tmp/junit.xml"  // if defined, JUnit report file will be analyzed            
        }
    },
    "extensions": [ "php", "php8" ]   // default: ["php", "inc"]
}

More

If want, you can install PhpMetrics globally with your favorite package manager (APT, Brew...). You can also visit our documentation.

Metrics list

See the metrics file.

Author

License

See the LICENSE file.

Contributing

See the CONTRIBUTING file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].