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

ActiveLibrary

xrstf/composer-php52
====================

v1.0.21(3y ago)142.8M↓10.6%20MITPHP

Since Jan 2Pushed 3y ago3 watchersCompare

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

READMEChangelog (2)DependenciesVersions (23)Used By (20)

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

Legacy
------

[](#legacy)

Please do not use this, if you can avoid it. It's a horrible hack, often breaks and is extremely tied to Composer's interna. This package was originally developed in 2012, when PHP 5.2 was much more common on cheap webhosts.

In 2016, this package has been moved from Bitbucket to a Github organization, because the original developer could no longer reliably maintain it. This is the reason for this legacy package name `xrstf/...`.

Usage
-----

[](#usage)

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

```
{
    "require": {
        "xrstf/composer-php52": "1.*"
    },
    "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

45

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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.

###  Release Activity

Cadence

Every ~164 days

Recently: every ~671 days

Total

22

Last Release

1441d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f747ed6a51a81fbf9b8c2e36d44b979ad9d3018e8de079b3188a50d7878f3b0?d=identicon)[xrstf](/maintainers/xrstf)

![](https://www.gravatar.com/avatar/5f986f04f2e4314d3b96ed62117f4298f07d8952d3b5ec6e00cf127d63f4046f?d=identicon)[garex](/maintainers/garex)

---

Top Contributors

[![xrstf](https://avatars.githubusercontent.com/u/127499?v=4)](https://github.com/xrstf "xrstf (52 commits)")[![garex](https://avatars.githubusercontent.com/u/77981?v=4)](https://github.com/garex "garex (8 commits)")[![rogeriopradoj](https://avatars.githubusercontent.com/u/443391?v=4)](https://github.com/rogeriopradoj "rogeriopradoj (2 commits)")[![alsma](https://avatars.githubusercontent.com/u/3245855?v=4)](https://github.com/alsma "alsma (1 commits)")[![theminecoder](https://avatars.githubusercontent.com/u/1396368?v=4)](https://github.com/theminecoder "theminecoder (1 commits)")[![zozfried](https://avatars.githubusercontent.com/u/671163?v=4)](https://github.com/zozfried "zozfried (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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