php-development
PHP Development provides expert guidance for building robust applications using PHP 8.1+ with strict typing, SOLID principles, and PSR standards. Learn proper code organization through dependency injection, repository patterns, and comprehensive error handling. The skill emphasizes type declarations, security practices, and testing strategies to ensure maintainable, scalable code.
PHP Development teaches SOLID principles and modern PHP 8+ patterns for expert-level coding.
AI-generated summary based on this skill's SKILL.md
Install
Mindrally/skills/php-development
git clone https://github.com/Mindrally/skills
cp -r skills/php-development ~/.claude/skills/php-developmentnpx skillfed install Mindrally/skills/php-developmentFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What PHP 8 development best practices does this skill cover?
PHP Development teaches modern PHP 8.1+ practices including strict typing with declare(strict_types=1), comprehensive type hints, and SOLID principles. The skill guides you through proper code organization using dependency injection, repository patterns, and PSR standards compliance. You'll learn how to write clean, maintainable code that scales effectively while following industry conventions.
How does PHP Development help with SOLID principles?
PHP Development provides expert guidance on applying SOLID principles to your PHP code. You'll learn how Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion principles improve code quality and maintainability. The skill demonstrates practical implementations through real-world patterns and refactoring techniques specific to PHP 8.1+.
What PSR standards and code organization does the skill teach?
PHP Development covers essential PSR standards including PSR-12 coding standards, PSR-4 autoloading with Composer, and other relevant standards for modern PHP. The skill teaches proper code organization through namespacing, directory structures, and architectural patterns that align with industry best practices for scalable applications.
How can I improve PHP code quality with type hints?
PHP Development emphasizes type declarations and strict typing to enhance code quality. Learn to use scalar type hints, return type declarations, nullable types, and union types in PHP 8+. The skill shows how proper type hints catch errors early, improve IDE support, and make your code self-documenting and more maintainable.
What security best practices does PHP Development cover?
PHP Development teaches secure, maintainable application development including input validation and sanitization, prepared statements for database queries, proper error handling without exposing sensitive information, and secure exception handling. The skill emphasizes defensive coding practices to protect against common vulnerabilities and ensure your applications remain robust.
How do I master dependency injection and testing in PHP?
PHP Development guides you through dependency injection patterns that decouple components and improve testability. Learn to implement constructor injection, service containers, and factory patterns. The skill covers PHPUnit testing framework integration, test-driven development strategies, and how proper dependency management makes unit testing straightforward and effective.
SKILL.md
rendered from the published skill — quoted content, verbatim
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
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
php-development/SKILL.md