Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

PHP 8.x best practices: types, PSR and SOLID v1.0.0

Use this resource to write or review PHP 8.x code following PSR and SOLID standards

New

  • 334 downloads
  • 157 likes
  • 123 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install modern-php-standards-solid

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent first checks the PHP version declared in composer.json and uses only the features available in it. It reviews the type system, modern features, PSR standards, SOLID principles, error handling and performance. You get a code review aligned with your PHP version.

Mostly picked by

Updated November 2, 2026

Card for the “PHP 8.x best practices: types, PSR and SOLID” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • AGENTS.md: PHP version detection and feature table by version
  • rules/: rules on types, modern features, PSR, SOLID and error handling

Good fit for

  • You review PHP code and want advice that fits your version
  • You want modern constructors, attributes or types in an existing project

Not for

    Tags

    • php
    • psr
    • solid
    • types

    About

    You say

    “Review this PHP class against PSR and SOLID standards.”

    Card for the “PHP 8.x best practices: types, PSR and SOLID” skill

    Skill published by asyrafhussin under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write or review PHP 8.x code following PSR and SOLID standards
    3. Review and adjust the result

    Content preview

    Files

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

    Origin and licence

    Listed unmodified

    Author
    asyrafhussin
    Source
    github.com/asyrafhussin/agent-skills/tree/1aa0ff717c10309226c9e678f00873976450fd76/skills/php-best-practices
    Licence
    MIT

    Notice

    « php-best-practices » (asyrafhussin, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.