atoms / phpstan-rules
PHPStan rules enforcing the Atoms boundary: no framework symbols in Atom code, serialization-algebra checks, Shared-zone purity.
Package info
github.com/AtomsPHP/phpstan-rules
Type:phpstan-extension
pkg:composer/atoms/phpstan-rules
Requires
- php: ^8.3
- atoms/core: ^0.1
- phpstan/phpstan: ^2.0
README
PHPStan rules for the Atoms boundary. They reject framework leakage, non-serializable boundary types, adapter layering violations, and code that depends on a guest clock which does not advance during a deployed turn.
composer require --dev atoms/phpstan-rules:^0.1
Include the shipped rules in phpstan.neon:
includes: - vendor/atoms/phpstan-rules/rules.neon
See the limits guide for the frozen-clock rules and their ATOMS-E101/E102 diagnostics.
Development and support
This package is developed in the Atoms monorepo. Its standalone repository is a read-only distribution mirror; report issues and send pull requests to the monorepo. Licensed under the MIT License.