PHPackages                             mglaman/retrofit-drupal - 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. mglaman/retrofit-drupal

Abandoned → [retrofit-drupal/retrofit](/?search=retrofit-drupal%2Fretrofit)Library

mglaman/retrofit-drupal
=======================

Retrofit provides compatibility layers to run legacy Drupal code.

0.1.15(1y ago)81883[21 issues](https://github.com/retrofit-drupal/retrofit/issues)[5 PRs](https://github.com/retrofit-drupal/retrofit/pulls)MITPHPPHP ^8.1CI failing

Since Jun 5Pushed 1y ago5 watchersCompare

[ Source](https://github.com/retrofit-drupal/retrofit)[ Packagist](https://packagist.org/packages/mglaman/retrofit-drupal)[ GitHub Sponsors](https://github.com/mglaman)[ Fund](https://ko-fi.com/mglaman)[ RSS](/packages/mglaman-retrofit-drupal/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (25)Used By (0)

Retrofit for Drupal
===================

[](#retrofit-for-drupal)

The Retrofit provides compatibility layers for legacy Drupal code to allow run on any version of Drupal.

Installation
------------

[](#installation)

Retrofit is *not* a module. All you need to do is install the package using Composer and Retrofit is available and working!

```
composer require retrofit-drupal/retrofit
```

And that's it! 🎉

How it works
------------

[](#how-it-works)

This library registers a service provider to integrate with Drupal automatically. No extra configuration is needed. Once Retrofit has been added to your Drupal code base it will automatically provide backward compatibility layers for you.

Support
-------

[](#support)

If you would like free and public support, open a [Discussion](https://github.com/retrofit-drupal/retrofit/discussions/new?category=q-a). You can also join the [\#retrofit](https://drupal.slack.com/archives/C05BT6LALUR) channel on [Drupal Slack](https://www.drupal.org/community/contributor-guide/reference-information/talk/tools/slack) as well.

If you would like paid and private support, [contact Matt Glaman](https://mglaman.dev/contact-matt) directly. Opportunities for paid private support are coming.

Usage
-----

[](#usage)

Currently, the compatibility layers are drop-in replacements. This means you can use them in your code without any changes. Some functions are namespaced for compatibility.

[Get started](docs/getting-started.md) with Retrofit for Drupal

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance42

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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 ~45 days

Recently: every ~84 days

Total

16

Last Release

390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98c03d4d2a6aa9b5ecdfc565e8f90f53f0a8f6c2757048a148b34b166d78266c?d=identicon)[mglaman](/maintainers/mglaman)

---

Top Contributors

[![mglaman](https://avatars.githubusercontent.com/u/3698644?v=4)](https://github.com/mglaman "mglaman (63 commits)")[![darrenoh](https://avatars.githubusercontent.com/u/2293701?v=4)](https://github.com/darrenoh "darrenoh (50 commits)")[![brihx001](https://avatars.githubusercontent.com/u/77675733?v=4)](https://github.com/brihx001 "brihx001 (4 commits)")

---

Tags

drupal

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mglaman-retrofit-drupal/health.svg)

```
[![Health](https://phpackages.com/badges/mglaman-retrofit-drupal/health.svg)](https://phpackages.com/packages/mglaman-retrofit-drupal)
```

###  Alternatives

[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M341](/packages/drupal-core-recommended)

PHPackages © 2026

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