php-development
Skill266 starsChanged 10 months agoApache-2.0View on GitHub
Expert guidance for PHP 8+ development with SOLID principles, PSR standards, and modern best practices
3 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- PracticalSwan/agent-skillstheir own version, first seen Sep 14, 2026
- dallay/agents-skillstheir own version, first seen Aug 13, 2026
- Cecilapp/Ceciledited, first seen Jun 5, 2025
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- Cecilapp/Cecil★ 29785% same
Wrote their own version · 2
- PracticalSwan/agent-skills★ 18same name
- dallay/agents-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository264 other files it gives its agents.
- accessibility-a11ySkill
- alpine-jsSkill
- analytics-data-analysisSkill
- android-developmentSkill
- angular-developmentSkill
- angularSkill
- anime-jsSkill
- anthropic-claude-developmentSkill
- api-developmentSkill
- apollo-graphqlSkill
- aspnet-coreSkill
- astroSkill
- auth0-authenticationSkill
- autogen-developmentSkill
- automl-hyperparameter-optimizationSkill
- aws-developmentSkill
- azureSkill
- backend-developmentSkill
- bash-scriptingSkill
- beautifulsoup-parsingSkill
- bitbucket-workflowSkill
- blazorSkill
- blender-python-addonSkill
- blockchainSkill
- bootstrapSkill
- business-central-developmentSkill
- cheerio-parsingSkill
- chrome-extension-developmentSkill
- ci-cd-best-practicesSkill
- clean-architectureSkill
- clean-codeSkill
- clerk-authenticationSkill
- cloudflare-developmentSkill
- computer-vision-opencvSkill
- convexSkill
- cppSkill
- c-sharpSkill
- cssSkill
- cypressSkill
- data-analysis-jupyterSkill
- data-analystSkill
- data-jupyter-pythonSkill
- deep-learning-pythonSkill
- deep-learning-pytorchSkill
- deep-learningSkill
- deno-typescriptSkill
- design-systemsSkill
- devopsSkill
- django-pythonSkill
- django-rest-api-developmentSkill
- dockerSkill
- dotnetSkill
- drizzle-ormSkill
- drupal-developmentSkill
- elasticsearch-best-practicesSkill
- electron-developmentSkill
- elixirSkill
- embedded-stm32Skill
- esbuild-bundlerSkill
- ethereumSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 22 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Write concise, technically accurate PHP code with proper examples
- Distinctive: line 13
Follow SOLID principles for object-oriented programming
- Distinctive: line 14
Follow the DRY (Don't Repeat Yourself) principle
- Distinctive: line 20
Use PHP 8.1+ features (typed properties, match expressions, named arguments, enums)
- Distinctive: line 21
Follow PSR-12 coding standards
- Distinctive: line 24
Use type hints for all parameters and return types
- Distinctive: line 29
Use PSR-4 autoloading with Composer
- Distinctive: line 31
Use dependency injection for loose coupling
- Distinctive: line 36
Use PascalCase for class names
- Distinctive: line 37
Use camelCase for method and variable names
- Very specific: line 38
Use SCREAMING_SNAKE_CASE for constants
- Distinctive: line 39
Use meaningful, descriptive names
- Distinctive: line 42
Always declare parameter types
- Distinctive: line 43
Always declare return types
- Distinctive: line 44
Use union types when appropriate
- Very specific: line 45
Use nullable types with ? prefix when needed
- Distinctive: line 48
Write complete PHPDoc blocks for classes, methods, and properties
- Distinctive: line 49
Document parameter types and descriptions
- Very specific: line 51
Document exceptions with @throws
- Distinctive: line 54
Use try-catch blocks for expected exceptions
- Distinctive: line 55
Create custom exception classes for domain-specific errors
- Distinctive: line 57
Never expose sensitive information in error messages
- Distinctive: line 61
Use prepared statements for database queries
- Distinctive: line 66
Write unit tests for all business logic
- Distinctive: line 67
Use PHPUnit for testing framework
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PHP Development
You are an expert PHP developer with deep knowledge of PHP 8+, object-oriented programming, and SOLID principles.
Core Principles
- Write concise, technically accurate PHP code with proper examples
- Follow SOLID principles for object-oriented programming
- Follow the DRY (Don't Repeat Yourself) principle
- Adhere to PSR coding standards
- Design for maintainability and scalability
PHP Standards
- Use PHP 8.1+ features (typed properties, match expressions, named arguments, enums)
- Follow PSR-12 coding standards
- Declare strict typing:
declare(strict_types=1); - Implement proper error handling and logging
- Use type hints for all parameters and return types
Best Practices
Code Organization
- Use PSR-4 autoloading with Composer
- Implement Repository pattern for data access logic
- Use dependency injection for loose coupling
- Leverage interfaces for abstraction
- Implement proper caching strategies
Naming Conventions
- Use PascalCase for class names
- Use camelCase for method and variable names
- Use SCREAMING_SNAKE_CASE for constants
- Use meaningful, descriptive names
Type Declarations
- Always declare parameter types
- Always declare return types
- Use union types when appropriate
- Use nullable types with
?prefix when needed
Documentation
- Write complete PHPDoc blocks for classes, methods, and properties
- Document parameter types and descriptions
- Include
@returntags with type information - Document exceptions with
@throws
Error Handling
- Use try-catch blocks for expected exceptions
- Create custom exception classes for domain-specific errors
- Log errors appropriately with context information
- Never expose sensitive information in error messages
Security Practices
- Sanitize all user input
- Use prepared statements for database queries
- Implement CSRF protection for forms
- Validate and escape output appropriately
Testing
- Write unit tests for all business logic
- Use PHPUnit for testing framework
- Follow Arrange-Act-Assert pattern
- Mock external dependencies in unit tests
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

