drmovi/phpstan-package-boundaries-plugin

PhpStan rule to set boundaries between packages

v0.1.0 2023-02-07 01:00 UTC

This package is not auto-updated.

Last update: 2024-06-12 01:40:43 UTC


README

PHPSTAN Package Boundaries Plugin

This package provides a simple way to define boundaries between packages phpstan.

Installation

composer require --dev drmovi/phpstan-package-boundaries-plugin

Usage

in config file of PHPSTAN, add the following line:

rules:
	- Drmovi\PackageBoundaries\PackageBoundaries

in root composer file add the following to extra:

 "phpstan-package-boundaries-plugin": {
            "packages_path": "packages",
            "whitelist_packages": [
                "shared"
            ]
        }