PHPackages                             ehrlichandreas/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. ehrlichandreas/composer-php52

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

ehrlichandreas/composer-php52
=============================

01141PHP

Since Jan 29Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (1)

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

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

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`.

Usage
-----

[](#usage)

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

```
:::json
{
    "repositories":
    [
        {
            "type": "git",
            "url": "https://github.com/ehrlichandreas/composer-php52.git"
        }
    ],
    "require":
    {
        "ehrlichandreas/composer-php52": "*"
    },
    "scripts":
    {
        "post-install-cmd":
        [
            "xrstf\\Composer52\\Generator::onPostInstallCmd"
        ],
        "post-update-cmd":
        [
            "xrstf\\Composer52\\Generator::onPostInstallCmd"
        ],
        "post-autoload-dump":
        [
            "xrstf\\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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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/ba896ab99803a567a0846abc9955114244c48f2948a175a288cabbe03cb45dc2?d=identicon)[ehrlichandreas](/maintainers/ehrlichandreas)

---

Top Contributors

[![ehrlichandreas](https://avatars.githubusercontent.com/u/3016354?v=4)](https://github.com/ehrlichandreas "ehrlichandreas (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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