Download the PHP package isfett/php-analyzer without Composer
On this page you can find all versions of the php package isfett/php-analyzer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-analyzer
PHP-Analyzer
php-analyzer
is a tool designed to help you with different problems.
Mostly I found that I wanted to resolve them while doing my job. For details check the documented commands below.
Installation
Run
or download the latest phar from this repository.
Usage
Each command has its own documentation; you can find those in the 'docs' subfolder.
Information
This tool uses a php parser written in php, ignoring different code-styles or whitespaces.
Commands
- Magic Number Detector This command helps to find Magic Numbers in your source code. You can also specify to check only case's inside switch's or default parameter values. You can find many examples in the linked command documentation.
- Magic String Detector This command helps to find Magic Strings in your source code. You can find many examples in the linked command documentation.
- Most Used Conditions This command helps to check which conditions are used the most in your project. Just want to check if's? Or ternaries? No problem! You can also use the command to split by logical operators, or split isset functions for each parameter, including post-processing your conditions, flip-checking, etc. You can find many examples in the linked command documentation.
Planned
- Find Duplicate Code (ignoring codestyle, just checking statements)
- Find Classes/Functions with the highest cyclomatic complexity
- Halstead-Metrics
- Refactoring-Score (including number of git-commits within a file)
- Most Used Constants (Order by name or value)
- IDE-Integration (PHPStorm, IntelliJ)
Contributing
Please see CONTRIBUTING.md for more information.
License
The MIT License (MIT). Please see LICENSE for more information.
All versions of php-analyzer with dependencies
symfony/console Version ^3.4 || ^4.0
symfony/finder Version ^3.4 || ^4.0
nikic/php-parser Version ^4.2
symfony/dependency-injection Version ^3.4 || ^4.3
symfony/config Version ^3.4 || ^4.3
symfony/http-kernel Version ^3.4 || ^4.3
symfony/yaml Version ^3.4 || ^4.3
doctrine/collections Version ^1.6
symfony/event-dispatcher Version ^3.4 || ^4.3
symfony/serializer Version ^3.4 || ^4.4