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)278MITPHPPHP ^8.3CI passing

Since Aug 9Pushed 10mo 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 2w ago

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

34

—

LowBetter than 74% of packages

Maintenance45

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

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

677d 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-doctrine

Doctrine extensions for PHPStan

67475.0M1.6k](/packages/phpstan-phpstan-doctrine)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13195.6k8](/packages/youwe-testing-suite)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.3M150](/packages/wp-cli-wp-cli-tests)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

39255.4k37](/packages/ec-europa-toolkit)[orrison/meliorstan

Provides PHPStan rules for improved code quality by detecting code smells and possible issues. In addition to enforcing particular naming and code style conventions to reduce bike-shedding.

1920.1k6](/packages/orrison-meliorstan)

PHPackages © 2026

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