A solid reference for modern PHP development that covers the language's evolution from version 8 onward. You get practical examples of constructor property promotion, match expressions, enums, and readonly classes alongside Laravel patterns for models, relationships, and accessors. The code samples show both old and new syntax side by side, which helps if you're migrating legacy code or just want to see why the new way is cleaner. Covers PSR standards, Composer tooling, and includes bash tool access for running PHP, Composer, and Artisan commands directly. Best used when you need quick syntax lookups for PHP 8+ features or want Claude to write Laravel code that actually follows current conventions instead of outdated patterns.

skills.sh installs
265
GitHub stars
44
last updated
Aug 21, 2026

Install

$ npx -y skills add personamanagmentlayer/pcl --skill php-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Testing with PHPUnit

Feature Tests

<?php

namespace Tests\Feature;

use App\Models\User;
use App\Models\Post;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class PostControllerTest extends TestCase
{
    use RefreshDatabase;

    public function test_can_list_posts(): void
    {
        Post::factory()->count(3)->create(['published' => true]);
        Post::factory()->create(['published' => false]);

Sponsors

Details

Repository
github.com/personamanagmentlayer/pcl
Category
PHP & Laravel
First seen
Jun 3, 2026

More from personamanagmentlayer/pcl

All 99
1iserter avatareloquent-best-practicesiserter/laravel-claude-agentsBest practices for Laravel Eloquent ORM including query optimization, relationship management, and avoiding common pitfalls like N+1 queries.1.3Kskills.sh installs
2laravel avatarlivewire-developmentlaravel/boostVendor-overridden Livewire skill487skills.sh installs
3mindrally avatarlaravel-developmentmindrally/skillsExpert guidance for Laravel PHP development following best practices, SOLID principles, and Laravel conventions939skills.sh installs
4mindrally avatarlaravelmindrally/skillsExpert in Laravel PHP development with best practices and modern patterns856skills.sh installs
5bobmatnyc avatarwordpress-plugin-fundamentalsbobmatnyc/claude-mpm-skillsModern WordPress plugin development with PHP 8.3+, OOP architecture, hooks system, database interactions, and Settings API434skills.sh installs
6freekmurze avatarphp-guidelines-from-spatiefreekmurze/dotfilesDescribes PHP and Laravel guidelines provided by Spatie. These rules result in more maintainable, and readable code.157skills.sh installs