atoms/phpstan-rules

PHPStan rules enforcing the Atoms boundary: no framework symbols in Atom code, serialization-algebra checks, Shared-zone purity.

Maintainers

Package info

github.com/AtomsPHP/phpstan-rules

Homepage

Issues

Documentation

Type:phpstan-extension

pkg:composer/atoms/phpstan-rules

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

0.1.1 2026-08-15 14:13 UTC

This package is auto-updated.

Last update: 2026-08-15 15:21:56 UTC


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.