PHP Roadmap
Open a topic for notes and resources. Mark it done when you are ready to move on.
PHP
✓
Trait Basics & Composition
✓
Trait Method Conflicts & Resolution
✓
Foundations
✓
Trait Visibility & Composition Traits
✓
Generators & Yield
✓
Core Concepts
✓
Fibers (PHP 8.1+)
✓
PHP 8 Attributes
✓
Generator Functions
✓
yield from Delegation
✓
Intermediate Skills
✓
Generator Key/Value Pairs
✓
Generator Send & Throw
✓
Advanced Topics
✓
Memory Efficiency vs Arrays
✓
Generators for Large Datasets
✓
Generator Coroutines
✓
Fiber Creation & Scheduling
✓
Expert Level
✓
Fiber Suspension & Resumption
✓
Fiber Error Handling
✓
Mastery
✓
Fiber vs Generator Tradeoffs
✓
Async I/O with Fibers
✓
Cooperative Multitasking
✓
Fiber Stack Management
✓
Ecosystem
✓
Attribute Syntax (#[Attribute])
✓
Target Specification
✓
Architecture
✓
Repeating Attributes
✓
Reading Attributes (ReflectionAttribute)
✓
Attribute Arguments & Named Parameters
✓
Attribute Validation & Middleware
✓
Optimization
✓
Migrating from PHPDoc Annotations
✓
Repository Pattern
✓
Deployment
✓
Service Container & DI
✓
Observer / Event Dispatcher
✓
Strategy Pattern with Enums
✓
Decorator Pattern
✓
Phase 11
✓
Adapter Pattern
✓
Pipeline Pattern (Middleware)
✓
Phase 12
✓
PSR-1: Basic Coding Standard
✓
PSR-4: Autoloading
✓
PSR-7: HTTP Message Interface
✓
PSR-11: Container Interface
✓
Phase 13
✓
PSR-14: Event Dispatcher
✓
PSR-18: HTTP Client
✓
Phase 14
✓
PSR-3: Logger Interface
✓
Composer Autoloader Generation
✓
Version Constraints & Resolution
✓
Lock File & Repositories
✓
Phase 15
✓
Script Hooks & Events
✓
Custom Installer Types
✓
Phase 16
✓
Satis & Private Packagist
✓
Composer Plugin Architecture
✓
PHPUnit Architecture
✓
Data Providers
✓
Phase 17
✓
Mocking (createMock, createStub)
✓
Prophet & prophecy
✓
Phase 18
✓
Test Doubles & Assertions
✓
Code Coverage (pcov, phpdbg)
✓
Integration Testing with PHPUnit
✓
OPcache Internals (SHM, File Cache)
✓
Phase 19
✓
JIT (PHP 8.0+, Tracing JIT)
✓
Preloading (opcache.preload)
✓
Phase 20
✓
Blackfire Profiling
✓
XHProf & Tideways
✓
Memory Usage Optimization
✓
Composer Autoloader Optimization
✓
Phase 21
✓
SQL Injection Prevention (Prepared Statements)
✓
XSS Prevention & Output Escaping
✓
Phase 22
✓
CSRF Token Pattern
✓
Password Hashing (password_hash, argon2)
✓
Session Security (regenerate_id, Httponly)
✓
PHAR Deserialization Risks
✓
Phase 23
✓
Open Redirect & SSRF
✓
__get, __set, __call, __callStatic
✓
Phase 24
✓
__invoke for Callable Objects
✓
__toString & Stringable
✓
__serialize & __unserialize (PHP 7.4+)
✓
__destruct & Resource Cleanup
✓
Phase 25
✓
__debugInfo
✓
Property Overloading (__isset, __unset)
✓
Phase 26
✓
FFI Definition & Loading
✓
C Types & Struct Mapping
✓
Calling C Functions
✓
Memory Management (FFI::memcpy, free)
✓
Phase 27
✓
FFI Performance Overhead
✓
Preloading FFI Definitions
✓
Phase 28
✓
FFI vs Extension Tradeoffs
Keep learning
Text version of this roadmap
1. Foundations
- Trait Basics & Composition
- Trait Method Conflicts & Resolution
- Trait Visibility & Composition Traits
2. Core Concepts
- Generators & Yield
- Fibers (PHP 8.1+)
- PHP 8 Attributes
3. Intermediate Skills
- Generator Functions
- yield from Delegation
- Generator Key/Value Pairs
4. Advanced Topics
- Generator Send & Throw
- Memory Efficiency vs Arrays
- Generators for Large Datasets
5. Expert Level
- Generator Coroutines
- Fiber Creation & Scheduling
- Fiber Suspension & Resumption
6. Mastery
- Fiber Error Handling
- Fiber vs Generator Tradeoffs
- Async I/O with Fibers
7. Ecosystem
- Cooperative Multitasking
- Fiber Stack Management
- Attribute Syntax (#[Attribute])
8. Architecture
- Target Specification
- Repeating Attributes
- Reading Attributes (ReflectionAttribute)
9. Optimization
- Attribute Arguments & Named Parameters
- Attribute Validation & Middleware
- Migrating from PHPDoc Annotations
10. Deployment
- Repository Pattern
- Service Container & DI
- Observer / Event Dispatcher
11. Phase 11
- Strategy Pattern with Enums
- Decorator Pattern
- Adapter Pattern
12. Phase 12
- Pipeline Pattern (Middleware)
- PSR-1: Basic Coding Standard
- PSR-4: Autoloading
13. Phase 13
- PSR-7: HTTP Message Interface
- PSR-11: Container Interface
- PSR-14: Event Dispatcher
14. Phase 14
- PSR-18: HTTP Client
- PSR-3: Logger Interface
- Composer Autoloader Generation
15. Phase 15
- Version Constraints & Resolution
- Lock File & Repositories
- Script Hooks & Events
16. Phase 16
- Custom Installer Types
- Satis & Private Packagist
- Composer Plugin Architecture
17. Phase 17
- PHPUnit Architecture
- Data Providers
- Mocking (createMock, createStub)
18. Phase 18
- Prophet & prophecy
- Test Doubles & Assertions
- Code Coverage (pcov, phpdbg)
19. Phase 19
- Integration Testing with PHPUnit
- OPcache Internals (SHM, File Cache): The internal architecture of opcache internals (shm, file cache) in Php reveals how the runtime handles Performance. This knowledge enables more informed design decisions and debugging.
- JIT (PHP 8.0+, Tracing JIT)
20. Phase 20
- Preloading (opcache.preload)
- Blackfire Profiling
- XHProf & Tideways
21. Phase 21
- Memory Usage Optimization
- Composer Autoloader Optimization
- SQL Injection Prevention (Prepared Statements)
22. Phase 22
- XSS Prevention & Output Escaping
- CSRF Token Pattern
- Password Hashing (password_hash, argon2)
23. Phase 23
- Session Security (regenerate_id, Httponly)
- PHAR Deserialization Risks
- Open Redirect & SSRF
24. Phase 24
- __get, __set, __call, __callStatic
- __invoke for Callable Objects
- __toString & Stringable
25. Phase 25
- __serialize & __unserialize (PHP 7.4+)
- __destruct & Resource Cleanup
- __debugInfo
26. Phase 26
- Property Overloading (__isset, __unset)
- FFI Definition & Loading
- C Types & Struct Mapping
27. Phase 27
- Calling C Functions
- Memory Management (FFI::memcpy, free)
- FFI Performance Overhead: Performance considerations for ffi performance overhead in Php significantly impact application behavior. Understanding optimization strategies helps avoid common pitfalls and improve runtime characteristics.
28. Phase 28
- Preloading FFI Definitions
- FFI vs Extension Tradeoffs