PHPackages                             isfett/php-analyzer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. isfett/php-analyzer

ActiveApplication[Parsing &amp; Serialization](/categories/parsing)

isfett/php-analyzer
===================

1.2.6(4y ago)54173[1 issues](https://github.com/isfett/php-analyzer/issues)[1 PRs](https://github.com/isfett/php-analyzer/pulls)MITPHPPHP &gt;=7.1

Since Aug 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/isfett/php-analyzer)[ Packagist](https://packagist.org/packages/isfett/php-analyzer)[ RSS](/packages/isfett-php-analyzer/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)Dependencies (15)Versions (11)Used By (0)

[![Build Status](https://camo.githubusercontent.com/2a0d5e3a2b47ac4f103f9dfad74b9948cc4940e6ce140f58ce53525491118eb5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f6973666574742f7068702d616e616c797a65722f6d61737465723f7374796c653d666c61742d737175617265)](https://travis-ci.com/isfett/php-analyzer)[![codecov](https://camo.githubusercontent.com/793262c49f46b58f8eb1b93b5bcee84855598ede7625dbc917c83053e4c2522b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6973666574742f7068702d616e616c797a65723f7374796c653d666c61742d737175617265)](https://codecov.io/gh/isfett/php-analyzer)[![Minimum PHP Version](https://camo.githubusercontent.com/dcd4b4aec2c1709157fa6a2c050f709d75cde9552a79cfff0b70a97fad7281ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Latest Stable Version](https://camo.githubusercontent.com/c80517cbf95eddda6a523c3bf8218cd38f45cc13b495bf22e7065346db6c01f9/68747470733a2f2f706f7365722e707567782e6f72672f6973666574742f7068702d616e616c797a65722f762f737461626c65)](https://packagist.org/packages/isfett/php-analyzer)[![Total Downloads](https://camo.githubusercontent.com/eb7f200115acd50f3eb1081b20d4023abe81dffe973faa737d685c84625cb981/68747470733a2f2f706f7365722e707567782e6f72672f6973666574742f7068702d616e616c797a65722f646f776e6c6f616473)](https://packagist.org/packages/isfett/php-analyzer)

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
------------

[](#installation)

Run

```
$ composer global require isfett/php-analyzer

```

or download the latest phar from [this repository](https://github.com/isfett/php-analyzer/releases).

Usage
-----

[](#usage)

Each command has its own documentation; you can find those in the 'docs' subfolder.

Information
-----------

[](#information)

This tool uses [a php parser written in php](https://github.com/nikic/PHP-Parser), ignoring different code-styles or whitespaces.

Commands
--------

[](#commands)

- [Magic Number Detector](docs/MagicNumberDetector.md) 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](docs/MagicStringDetector.md) This command helps to find Magic Strings in your source code. You can find many examples in the linked command documentation.
- [Most Used Conditions](docs/MostUsedConditions.md) 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
-------

[](#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
------------

[](#contributing)

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 93.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~92 days

Recently: every ~182 days

Total

9

Last Release

1731d ago

PHP version history (2 changes)1.0.0PHP ^7.1

1.2.6PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/26afcb491e8fc3fafe8b2f2c02cec7577683a57bd363d0ca51ddf22f7d08c3c5?d=identicon)[chriz0101](/maintainers/chriz0101)

---

Top Contributors

[![isfett](https://avatars.githubusercontent.com/u/18682865?v=4)](https://github.com/isfett "isfett (31 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![pinkgothic](https://avatars.githubusercontent.com/u/17291121?v=4)](https://github.com/pinkgothic "pinkgothic (1 commits)")

---

Tags

analyzerconditionsmagic-numbersmagic-stringsparserphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/isfett-php-analyzer/health.svg)

```
[![Health](https://phpackages.com/badges/isfett-php-analyzer/health.svg)](https://phpackages.com/packages/isfett-php-analyzer)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
