No description
Find a file
Nicholas Ciechanowski c6ae2aaae7 Update to use exercises/php subdirectory structure
- Exercises now copied to exercises/php/
- Tests synced to tests/exercises/php/
- Prevents naming conflicts with other tracks
2025-11-17 22:58:09 +11:00
exercises Add hint to exercise 002 2025-11-17 21:42:11 +11:00
src Update to use exercises/php subdirectory structure 2025-11-17 22:58:09 +11:00
tests Add Pest.php configuration for test bootstrapping 2025-11-17 21:36:01 +11:00
.gitignore init 2025-11-10 22:57:03 +11:00
composer.json Add core-dev as dev dependency for admin tools 2025-11-11 22:30:24 +11:00
LICENSE init 2025-11-10 22:57:03 +11:00
README.md init 2025-11-10 22:57:03 +11:00

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