php-development

Develop modern PHP applications with type safety, PSR standards, and Composer.

2|Updated May 15, 2026
One-click install
npx skills add https://github.com/bdbch/ai-dotfiles --skill php-development-bdbch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-development
Source: https://github.com/bdbch/ai-dotfiles/tree/main/skills/php-development
Command: npx skills add https://github.com/bdbch/ai-dotfiles --skill php-development-bdbch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenges of modern PHP development, including managing complex codebases, adhering to best practices, and optimizing performance.

Core Features & Use Cases

  • Modern PHP Language Features: Covers type system, OOP, PSR standards, Composer, namespaces, traits, generators, attributes, error handling, PDO, streams, and performance optimization.
  • Use Case: Ideal for developing modern PHP applications, library creation, Composer package management, CLI scripts, database access, API integration, and legacy PHP optimization.

Quick Start

Use the php-development skill to write a PHP script that follows best practices for type safety and performance optimization.

Frequently Asked Questions about php-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce strict type safety and OOP best practices in modern PHP applications?

Modern PHP enforces strict type safety and OOP best practices by leveraging the robust type system, PSR standards, and object-oriented patterns. This approach ensures type safety, manages complex codebases, and improves overall application reliability.

What is the best way to manage dependencies and adhere to PSR standards in PHP 8.x?

The best way to manage PHP 8.x dependencies and PSR standards is using Composer for package management alongside PSR-compliant autoloading. This ensures consistent code structure, simplifies library creation, and maintains modern development conventions.

How do I optimize performance and handle database access with PDO in modern PHP scripts?

Optimize PHP performance and handle PDO database access by utilizing generators, streams, and modern error handling techniques. This combination streamlines database operations, reduces memory overhead, and maximizes execution efficiency.

Can I use modern PHP features like traits, generators, and attributes for legacy PHP optimization?

Yes, modern PHP features like traits, generators, and attributes are ideal for legacy PHP optimization. They enable gradual refactoring of older codebases by introducing strict type systems, efficient data processing, and structured metadata without full rewrites.

Do I need PHP 8.x familiarity to implement type system and Composer package management?

Yes, PHP 8.x familiarity is required to implement the type system and Composer package management effectively. This knowledge ensures proper usage of modern language features, namespaces, and dependency resolution for building robust applications.