1. Christoph
  2. composer-php52



PHP 5.2 Autoloading for Composer

NOTE: This repository has been moved to GitHub.

This package provides an easy way to get a PHP 5.2 compatible autoloader out of Composer. The generated autoloader is fully compatible to the original and is written into separate files, each ending with _52.php.


In your project's composer.json, add the following lines:

    "require": {
        "xrstf/composer-php52": "1.*"
    "scripts": {
        "post-install-cmd": [
        "post-update-cmd": [
        "post-autoload-dump": [

After the next update/install, you will have a vendor/autoload_52.php file, that you can simply include and use in PHP 5.2 projects.