PHPackages                             webworker01/composer-php52 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webworker01/composer-php52

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webworker01/composer-php52
==========================

0161

Since Jan 14Pushed 13y agoCompare

[ Source](https://github.com/webworker01/composer-php52)[ Packagist](https://packagist.org/packages/webworker01/composer-php52)[ RSS](/packages/webworker01-composer-php52/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP 5.2 Autoloading for Composer
================================

[](#php-52-autoloading-for-composer)

\*\* THIS IS A FORK OF  to get and fix full compatibility on PHP 5.2 and also to have the repo hosted on GITHUB \*\*

This package provides a 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`.

*Note:* Currently, updating the autoloader on `composer dump-autoload` is not possible, as there is no script event yet that one could hook a script into.

Usage
-----

[](#usage)

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

```
:::json
{
    "require": {
        "webworker01/composer-php52": "1.*@dev"
    },
    "scripts": {
        "post-install-cmd": [
            "webworker01\\Composer52\\Generator::onPostInstallCmd"
        ],
        "post-update-cmd": [
            "webworker01\\Composer52\\Generator::onPostInstallCmd"
        ]
    }
}

```

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.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2120286bceeadf46e5923813400b991a6642a85f4df84132872379ec6fadb8e?d=identicon)[webworker01](/maintainers/webworker01)

### Embed Badge

![Health badge](/badges/webworker01-composer-php52/health.svg)

```
[![Health](https://phpackages.com/badges/webworker01-composer-php52/health.svg)](https://phpackages.com/packages/webworker01-composer-php52)
```

###  Alternatives

[jzonta/faker-restaurant

Food and Beverage names generate using fakerphp/faker

96317.2k](/packages/jzonta-faker-restaurant)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
