PHPackages                             phpmef/phpmef - 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. phpmef/phpmef

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

phpmef/phpmef
=============

PHPMEF allows easy composition and extensibility in an application.

15PHP

Since Jul 8Pushed 11y ago1 watchersCompare

[ Source](https://github.com/maartenba/phpmef)[ Packagist](https://packagist.org/packages/phpmef/phpmef)[ RSS](/packages/phpmef-phpmef/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

PHPMEF - PHP Managed Extensibility Framework
============================================

[](#phpmef---php-managed-extensibility-framework)

PHPMEF is a PHP port of the .NET Managed Extensibility Framework, allowing easy composition and extensibility in an application using the Inversion of Control principle and 2 easy keywords: @export and @import.

Downloads
---------

[](#downloads)

Latest download can be found under [releases](https://github.com/maartenba/phpmef/releases).

Hello, PHPMEF!
--------------

[](#hello-phpmef)

Here's a simple example on how PHPMEF can be used:

```

  class HelloWorld {
      /**
       * @import-many MessageToSay
       */
      public $Messages;

      public function sayIt() {
          echo implode(', ', $this->Messages);
      }
  }

  class Hello {
      /**
       * @export MessageToSay
       */
      public $HelloMessage = 'Hello';
  }

  class World {
      /**
       * @export MessageToSay
       */
      public $WorldMessage = 'World!';
  }

  $helloWorld = new HelloWorld();

  $compositionInitializer = new MEF_CompositionInitializer(new MEF_Container_Default());
  $compositionInitializer->satisfyImports($helloWorld);

  $helloWorld->sayIt(); // Hello, World!
``
```

``Check the wiki for more information.``

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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/53e1aa0ac57260add32656bc432db72976faed83f31d5a6248782afa9b69b967?d=identicon)[maartenba](/maintainers/maartenba)

---

Top Contributors

[![maartenba](https://avatars.githubusercontent.com/u/485230?v=4)](https://github.com/maartenba "maartenba (5 commits)")[![thaiphan](https://avatars.githubusercontent.com/u/644172?v=4)](https://github.com/thaiphan "thaiphan (4 commits)")

### Embed Badge

![Health badge](/badges/phpmef-phpmef/health.svg)

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

PHPackages © 2026

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