Code Analysis

Libraries and tools for analysing, parsing and manipulating codebases.

Newest releases

taptima Phalyfusion is a tool for convenient and effective usage of multiple PHP static code analysers. It runs analysers, combines its outputs and makes a single nice output in various formats:

vudaltsov Демонстрационный проект стрима Валентина Удальцова на канале PHP Point.

struggle-for-php finding mismatch type assignment in function/method scope with psalm.

sebastianbergmann Library for counting the lines of code in PHP source code

sebastianbergmann Library for calculating the complexity of PHP code units.

seferov TYPHP typhp is a simple tool checks whether type hint for arguments or return type declared. Unlike static analysis tools, it doesn't point out possible errors and issues but suggests typehint everything possible.

nunomaduro PHP Insights was created by, and is maintained by Nuno Maduro, and is the perfect starting point to analyze the code quality of your PHP projects. Carefully crafted to simplify the analysis of your code directly fro

composer-unused composer-unused Show unused packages by scanning your code Motivation Working in a big repository with multiple people, sometimes you might lose track of you required composer packages. You have so many p

sebastianbergmann Find Optimized-Away Lines (FOAL) foal finds lines of code that are eliminated by OpCache's bytecode optimizer. Installation The recommended way to use this tool is a PHP Archive (PHAR): $ wget https://pha

appzcoder PHPCloc 🚀 Cloc & duplicate code checker written in PHP Requirements PHP >= 5.5.9 Installation Manual $ wget

phpactor Phpactor Branch Status master develop This project aims to provide heavy-lifting refactoring and introspection tools which can be used standalone or as

phan Phan is a static analyzer for PHP that prefers to minimize false-positives. Phan attempts to prove incorrectness rather than correctness. Phan looks for common issues and will verify type compatibility on various operations when

jakzal Static Analysis Tools for PHP Docker image providing static analysis tools for PHP. The list of available tools and the installer are actually managed in the jakzal/toolbox repository. Supported platforms

phpvisualdebt PHPVisualDebt Static Analyzer following QDD which Questions Everything that is leaving Visual Debt behind. Feel free to interpret QDD however you want! It could be Question Driven Development as well as Question Disas

bvanhoekelen ⏱ PHP Performance tool 🛠 Build: Master|Develop Highlight Measure easily the performance of your PHP script across multiple platforms Support for Laravel framework » Laravel Supp

vimeo Psalm is a static analysis tool for finding errors in PHP applications. v0.3.x supports checking PHP 5.4 - 7.1 code, and requires PHP 5.6+ to run. v0.2.x supports checking PHP 5.4 - 7.0 code and requires PHP

phpstan PHPStan - PHP Static Analysis Tool PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code. It moves PHP closer

Roave Better Reflection Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API. Why is it better? You can reflect on classes that are not a

squizlabs About PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correc

sebastianbergmann PHPLOC phploc is a tool for quickly measuring the size and analyzing the structure of a PHP project. Installation PHP Archive (PHAR) The easiest way to obtain PHPLOC is to download a PHP Archiv

scrutinizer-ci PHP Analyzer Please report bugs or feature requests via our website support system ? in bottom right or by emailing [email protected] Contributing Stubs PHP Analyzer uses stubs for built-in PHP cla

devster Ubench Ubench is a PHP micro library for benchmark Installation Note: If you are looking for this package for laravel application then install it from here Benchmark Old school require src/Ubenc

Trismegiste Mondrian Ok guyz, you have a master degree in Graph Theory, you follow Law of Demeter and you live on S.O.L.I.D principles ? Let's have some Fun ! (^ω^) What It is a set of CLI tools to help you to analyse

sebastianbergmann PHP Copy/Paste Detector (PHPCPD) phpcpd is a Copy/Paste Detector (CPD) for PHP code. Installation PHP Archive (PHAR) The easiest way to obtain PHPCPD is to download a PHP Archive (PHAR) that ha

jakubledl Welcome to Dissect! master - this branch always contains the last stable version. develop - the unstable development branch. Dissect is a set of tools for lexical and syntactical analysis written in pure PHP.

polyfractal Athletic Athletic is a benchmarking framework. It allows developers to benchmark their code without littering microtime() calls everywhere. Athletic was inspired by the annotation format that PHPUnit uses. Benchmark te

Corveda A full-scale PHP 5.4+ sandbox class that utilizes PHP-Parser to prevent sandboxed code from running unsafe code. It also utilizes FunctionParser to disassemble callables passed to the sandbox, so that PHP callables ca

mamuz PhpDependencyAnalysis PhpDependencyAnalysis is an extendable static code analysis for object-oriented PHP-Projects to generate dependency graphs from abstract datatypes (Classes, Interfaces and Traits) based on na

EdgedesignCZ PHPQA CLI Analyze PHP code with one command. Requirements PHP >= 5.4.0 xsl extension for HTML reports Why? Every analyzer has different arguments and options in different formats

PHPCheckstyle PHPCheckstyle Overview PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions. The tools checks the input PHP source code and reports any deviations from the co

phan Phan is a static analyzer for PHP that prefers to minimize false-positives. Phan attempts to prove incorrectness rather than correctness. Phan looks for common issues and will verify type compatibility on various operations when

phpmetrics PhpMetrics PhpMetrics provides metrics about PHP project and classes, with beautiful and readable HTML report. Demo | Documentation | Twitter | Contributing Quick start composer require phpmetric

exakat Exakat The Exakat Engine is an automated code reviewing engine for PHP. Installation Installation with the phar Phar is the recommended installation process. The Exakat engine is distributed as a