Php Best Practices

by asyrafhussin1aa0ff717c10MIT86 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 6 weeks ago

PHP 8.x modern patterns, PSR standards, and SOLID principles. Use when reviewing PHP code, checking type safety, auditing code quality, or ensuring PHP best practices. Triggers on "review PHP", "check PHP code", "audit PHP", or "PHP best practices".

Instructions onlySoftware Development

Only the file list is public. File contents are available once the skill is installed in a workspace.

PathSizeType
AGENTS.md20.8 KBtext/markdown
metadata.json2.9 KBapplication/json
README.md2.2 KBtext/markdown
rules/error-custom-exceptions.md3.5 KBtext/markdown
rules/error-exception-hierarchy.md3.4 KBtext/markdown
rules/error-finally-cleanup.md2.6 KBtext/markdown
rules/error-never-suppress.md2.4 KBtext/markdown
rules/error-try-catch-specific.md2.5 KBtext/markdown
rules/modern-arrow-functions.md3.3 KBtext/markdown
rules/modern-asymmetric-visibility.md2.7 KBtext/markdown
rules/modern-attributes.md3.9 KBtext/markdown
rules/modern-constructor-promotion.md4.1 KBtext/markdown
rules/modern-enums.md6.8 KBtext/markdown
rules/modern-enums-methods.md4.7 KBtext/markdown
rules/modern-first-class-callables.md4.5 KBtext/markdown
rules/modern-match-expression.md3.7 KBtext/markdown
rules/modern-named-arguments.md3.1 KBtext/markdown
rules/modern-nullsafe-operator.md3.6 KBtext/markdown
rules/modern-override-attribute.md2.6 KBtext/markdown
rules/modern-pipe-operator.md2.6 KBtext/markdown
rules/modern-property-hooks.md3.1 KBtext/markdown
rules/modern-readonly-classes.md3.3 KBtext/markdown
rules/modern-readonly-properties.md3.1 KBtext/markdown
rules/modern-typed-constants.md2.3 KBtext/markdown
rules/perf-array-functions.md2.2 KBtext/markdown
rules/perf-avoid-globals.md2.1 KBtext/markdown
rules/perf-generators.md2.8 KBtext/markdown
rules/perf-lazy-loading.md2.6 KBtext/markdown
rules/perf-string-functions.md2 KBtext/markdown
rules/psr-12-coding-style.md4.7 KBtext/markdown
rules/psr-4-autoloading.md3 KBtext/markdown
rules/psr-file-structure.md5 KBtext/markdown
rules/psr-namespace-usage.md4.9 KBtext/markdown
rules/psr-naming-classes.md3.6 KBtext/markdown
rules/psr-naming-methods.md5.7 KBtext/markdown
rules/sec-file-uploads.md3.6 KBtext/markdown
rules/sec-input-validation.md2.6 KBtext/markdown
rules/sec-output-escaping.md2.1 KBtext/markdown
rules/sec-password-hashing.md2.6 KBtext/markdown
rules/sec-sql-prepared.md2.6 KBtext/markdown
rules/_sections.md2 KBtext/markdown
rules/solid-dip.md7 KBtext/markdown
rules/solid-isp.md6.7 KBtext/markdown
rules/solid-lsp.md6.5 KBtext/markdown
rules/solid-ocp.md6.8 KBtext/markdown
rules/solid-srp.md6.7 KBtext/markdown
rules/_template.md1018 Btext/markdown
rules/type-intersection-types.md2.6 KBtext/markdown
rules/type-mixed-avoid.md3 KBtext/markdown
rules/type-nullable-types.md2.5 KBtext/markdown
rules/type-parameter-types.md1.8 KBtext/markdown
rules/type-property-types.md1.9 KBtext/markdown
rules/type-return-types.md1.8 KBtext/markdown
rules/type-strict-mode.md4.6 KBtext/markdown
rules/type-union-types.md2 KBtext/markdown
rules/type-void-never.md2.9 KBtext/markdown
SKILL.md8.1 KBtext/markdown

Source and attribution

Source:asyrafhussin/agent-skillsinskills/php-best-practicesat commit1aa0ff7

License: MIT

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal