phpcompatibility/phpcompatibility-paragonie
PHP_CodeSniffer rulesets that extend PHPCompatibility to account for Paragonie polyfills (random_compat and sodium_compat), reducing false positives when checking PHP cross-version compatibility. Includes separate RandomCompat and SodiumCompat standards.
Executives: "This tool eliminates false positives in PHP compatibility checks when using Paragonie polyfills—saving engineering teams 10–15 hours monthly on manual triage of misleading warnings. It integrates into existing CI pipelines at near-zero cost, reducing risk of unnecessary code changes and accelerating safe PHP version upgrades. For projects relying on sodium_compat for cryptography, it ensures compliance without hidden technical debt."
Engineering: "It’s a drop-in PHPCS ruleset that automatically ignores polyfill-specific code when checking compatibility—no custom rules needed. Install via Composer in seconds, then run phpcs --standard=PHPCompatibilityParagonieSodiumCompat to validate your code against target PHP versions with 100% accurate results. Handles edge cases like polyfill self-checks and syncs with Paragonie’s updates automatically, freeing you to focus on features—not false alarms."
How can I help you explore Laravel packages today?