haphpiness

These are things in PHP which make me genuinely_happy();

Composer — Best-in-Class Dependency Management

Composer didn't just give PHP a package manager — it gave PHP one of the best package managers in any language. Semantic versioning, autoloading, platform requirements, scripts, and a rich ecosystem of 350,000+ packages on Packagist.

// composer.json — clean, declarative, powerful
{
    "require": {
        "php": "^8.1",
        "laravel/framework": "^11.0",
        "league/flysystem": "^3.0"
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    }
}

// That's it. Run `composer install` and everything works.
// PSR-4 autoloading means no more require/include spaghetti:
use App\Services\PaymentGateway;
$gateway = new PaymentGateway(); // Autoloaded. No require() needed.

Composer solved autoloading (via PSR-0/PSR-4), dependency resolution, and package distribution in one tool. The composer.lock file ensures reproducible builds. The platform-check plugin catches PHP version mismatches before deployment. It's genuinely world-class infrastructure.

Significance: Ecosystem

A great package manager transforms a language's ecosystem. Composer turned PHP from a language where you copy-pasted libraries into your project into one with a thriving, interoperable package ecosystem. It's the single most important tool in modern PHP development.