PHPackages                             lynxsolutions/php-static-analysis - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. lynxsolutions/php-static-analysis

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

lynxsolutions/php-static-analysis
=================================

Static Analysis Tools Configurations for Laravel projects

1.0.0(1y ago)275MITPHPPHP ^8.3CI passing

Since Aug 9Pushed 8mo ago4 watchersCompare

[ Source](https://github.com/LynxSolutions/php-static-analysis)[ Packagist](https://packagist.org/packages/lynxsolutions/php-static-analysis)[ RSS](/packages/lynxsolutions-php-static-analysis/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

PHP Static Analysis Tools configurations
========================================

[](#php-static-analysis-tools-configurations)

This repository, besides the PHPCS **LynxSolutionsCodingStandard**, also includes configuration files for various static analysis tools used in LynxSolutions PHP(mostly Laravel) projects.

Installation
------------

[](#installation)

Composer:

```
composer require --dev lynxsolutions/php-static-analysis
```

Usage
-----

[](#usage)

### PHP\_CodeSniffer:

[](#php_codesniffer)

In your project's `phpcs.xml` file add the following line:

```

```

If you don't have a `phpcs.xml` file, here's a simple example:

```

    LynxSolutions PHPCS default configuration.

    app
    bootstrap
    config
    database
    routes
    tests

    cache/*

```

Now you should be able to run:

```
vendor/bin/phpcs
```

### PHP Mess Detector:

[](#php-mess-detector)

In your project's `phpmd.xml` file add the following line:

```

```

If you don't have a `phpmd.xml` file, here's a simple example:

```

    LynxSolutions PHPMD default configuration.

```

Now you can run:

```
vendor/bin/phpmd app,bootstrap,config,database,routes,tests text phpmd.xml
```

### PHPStan:

[](#phpstan)

In your project's `phpstan.neon` file add the following line:

```
includes:
    - vendor/lynxsolutions/php-static-analysis/phpstan/phpstan.neon
```

#### For Laravel projects:

[](#for-laravel-projects)

First, make sure you install the [`larastan/larastan`](https://github.com/larastan/larastan) package:

```
composer require --dev larastan/larastan
```

Then, in your project's `phpstan.neon`, include the following:

```
includes:
    - vendor/lynxsolutions/php-static-analysis/phpstan/laravel.neon
```

If you don't have a `phpstan.neon` file, here's a simple example:

```
includes:
    - vendor/lynxsolutions/php-static-analysis/phpstan/laravel.neon

parameters:
    paths:
        - app
        - bootstrap
        - config
        - database
        - routes
        - tests
```

Now you can run:

```
vendor/bin/phpstan analyse
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance49

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.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 ~62 days

Total

2

Last Release

632d ago

Major Versions

0.1.0 → 1.0.02024-10-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9194446?v=4)[Bogdan](/maintainers/bogdannbv)[@bogdannbv](https://github.com/bogdannbv)

![](https://avatars.githubusercontent.com/u/11485850?v=4)[gitszabolcs](/maintainers/gitszabolcs)[@gitszabolcs](https://github.com/gitszabolcs)

---

Top Contributors

[![bogdannbv](https://avatars.githubusercontent.com/u/9194446?v=4)](https://github.com/bogdannbv "bogdannbv (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/lynxsolutions-php-static-analysis/health.svg)

```
[![Health](https://phpackages.com/badges/lynxsolutions-php-static-analysis/health.svg)](https://phpackages.com/packages/lynxsolutions-php-static-analysis)
```

###  Alternatives

[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4853.5M91](/packages/shipmonk-dead-code-detector)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13191.0k8](/packages/youwe-testing-suite)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)

PHPackages © 2026

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