skillfed

php-expert

PHP Expert provides in-depth instruction on PHP 8+ language features including union types, named arguments, match expressions, attributes, and enums. Learn Laravel framework patterns, Composer dependency management, and object-oriented design principles for building robust applications.

PHP Expert teaches PHP 8+ syntax, Laravel framework patterns, and modern development practices.

AI-generated summary based on this skill's SKILL.md

38 8 Apache-2.0 updated by personamanagmentlayer

Install

personamanagmentlayer/pcl/php-expert · repository language: TypeScript

git clone https://github.com/personamanagmentlayer/pcl
cp -r pcl/stdlib/languages/php-expert ~/.claude/skills/php-expert
npx skillfed install personamanagmentlayer/pcl/php-expert

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What PHP 8 features and best practices does PHP Expert cover?

PHP Expert teaches PHP 8+ syntax and modern language features including union types, named arguments, match expressions, the nullsafe operator, constructor property promotion, enums, readonly properties, and attributes. The skill emphasizes writing type-safe, testable code aligned with PSR standards and modern PHP development patterns for building robust applications.

How does PHP Expert help with Laravel development?

PHP Expert provides comprehensive Laravel development guidance covering framework patterns, controllers, form requests, Eloquent ORM, migrations, database design, relationships, API resources, JSON responses, jobs, queue management, event listeners, and dispatching. The skill teaches best practices for building Laravel applications with proper architecture and design principles.

Does PHP Expert cover testing and type safety?

Yes, PHP Expert focuses on writing testable, type-safe PHP code through strict types, type declarations, PHPUnit testing framework, factory testing, and seeding strategies. The skill teaches how to leverage PHP 8+ type system features to catch errors early and write maintainable, well-tested applications.

What does PHP Expert teach about Composer and dependencies?

PHP Expert covers Composer dependency management for PHP projects, helping you understand how to manage project dependencies, autoloading, and PSR standards compliance. This includes practical guidance on structuring projects and following industry conventions for modern PHP development.

How does PHP Expert address Eloquent ORM and database patterns?

PHP Expert provides in-depth instruction on mastering Eloquent ORM and database patterns, including query construction, relationship definitions, migrations, and database design principles. The skill teaches how to build efficient database interactions and maintain clean data layer architecture in Laravel applications.

Does PHP Expert cover advanced PHP concepts like attributes and reflection?

Yes, PHP Expert teaches advanced PHP concepts including attributes and reflection capabilities introduced in PHP 8+. These powerful metaprogramming features enable you to build flexible, framework-like code and understand how modern PHP frameworks leverage these tools for elegant application design.

SKILL.md

rendered from the published skill — quoted content, verbatim

PHP Expert

Expert guidance for modern PHP development including PHP 8+ features, Laravel framework, Composer dependency management, and PHP best practices.

Core Concepts

PHP 8+ Features
  • Union types and mixed type
  • Named arguments
  • Attributes (annotations)
  • Constructor property promotion
  • Match expressions
  • Nullsafe operator
  • JIT compiler
  • Fibers (PHP 8.1+)
  • Readonly properties and classes
Object-Oriented PHP
  • Classes and objects
  • Interfaces and abstract classes
  • Traits
  • Namespaces
  • Autoloading (PSR-4)
  • Type declarations
  • Visibility modifiers
Modern PHP
  • Strict types
  • Return type declarations
  • Property type declarations
  • Enums (PHP 8.1+)
  • First-class callable syntax

Modern PHP 8+ Syntax

Constructor Property Promotion

```php <?php

// Before PHP 8 class User { private string $name; private string $email; private int $age;

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
stdlib/languages/php-expert/SKILL.md

Related skills

Tags

type-safety framework-patterns async-concurrency api-development testing-strategy dependency-injection eloquent-orm code-standards database-migrations queue-systems