No description
- PHP 100%
- Exercises now copied to exercises/php/ - Tests synced to tests/exercises/php/ - Prevents naming conflicts with other tracks |
||
|---|---|---|
| exercises | ||
| src | ||
| tests | ||
| .gitignore | ||
| composer.json | ||
| LICENSE | ||
| README.md | ||
Phpling PHP Track
Learn PHP fundamentals through hands-on exercises - from basics to advanced features.
What's Included
This track covers 118 exercises including:
Basics (001-018)
- Hello world
- Variables and types
- Arrays and associative arrays
- Control flow (if/else, match)
- Loops (foreach, while, for)
- Functions and parameters
String Functions (019-025)
- Case conversion
- String length and manipulation
- Substring extraction
- String searching
Array Functions (026-033)
- Array operations
- Transformations (map, filter, reduce)
- Array merging and manipulation
Object-Oriented Programming (034-057)
- Classes and objects
- Inheritance and interfaces
- Traits and abstract classes
- Property promotion
Advanced Features (058-085)
- Namespaces
- Error handling
- Enums (PHP 8.1+)
- Attributes (PHP 8.0+)
- Generators and closures
Modern PHP (086-103)
- Readonly properties/classes
- Union and intersection types
- Null coalescing operators
- Property hooks (PHP 8.4+)
Specialized Topics (104-118)
- File handling
- JSON operations
- Regular expressions
- DateTime
- Iterators
Installation
Don't install this package directly. Use the main Phpling installer:
composer create-project phpling/phpling my-php-journey
This will set up everything you need, including copying all exercises to your project directory.
Requirements
- PHP 8.4 or higher
License
MIT