Skip to main content

php-development

Modern PHP programming skill - master PHP 8.x syntax, OOP, type system, and Composer

소스 정보

저장소
zekdevs/pi-config
최근 소스 활동
2026년 5월 17일 04:55
감지된 SKILL.md 언어
영어
스타
34
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
php-development
description
Modern PHP programming skill - master PHP 8.x syntax, OOP, type system, and Composer
This skill provides comprehensive training in modern PHP development, from basic syntax to advanced PHP 8.4 features. ## Code Examples ### Beginner: Basic Syntax ```php <?php declare(strict_types=1); // Variables and types $name = 'PHP Developer'; $version = 8.3; // Match expression (PHP 8.0+) $status = match($code) { 200 => 'OK', 404 => 'Not Found', default => 'Unknown', }; ``` ### Intermediate: OOP Patterns ```php <?php declare(strict_types=1); // Constructor property promotion (PHP 8.0+) final readonly class User { public function __construct( public int $id, public string $email, public string $name, ) {} } ``` ### Advanced: PHP 8.4 Features ```php <?php declare(strict_types=1); // Property hooks (PHP 8.4+) class Temperature { public float $celsius { get => $this->celsius; set => $value >= -273.15 ? $value : throw new \InvalidArgumentException(); } public float $fahrenheit { get => $this->celsius * 9/5 + 32; set => $this->celsius = ($value - 32) * 5/9; } } ``` ## Troubleshooting ### Common Issues | Problem | Cause | Solution | |---------|-------|----------| | Type errors | Strict types + wrong type | Check function signature, cast values | | Autoloading failures | PSR-4 mismatch | Verify namespace, run composer dump-autoload | | Deprecated features | Old PHP patterns | Update to modern syntax | ## Quality Metrics | Metric | Target | |--------|--------| | Code example accuracy | 100% | | PHP version correctness | 100% | | PSR-12 compliance | 100% |
GitHub에서 보기