PHPackages                             elephox/framework - 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. [Framework](/categories/framework)
4. /
5. elephox/framework

ActiveLibrary[Framework](/categories/framework)

elephox/framework
=================

A type-safe PHP framework.

0.9.0(3y ago)2326[18 issues](https://github.com/elephox-dev/framework/issues)2MITPHPPHP ^8.1 &lt;8.3CI passing

Since Jan 17Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/elephox-dev/framework)[ Packagist](https://packagist.org/packages/elephox/framework)[ Docs](https://elephox.dev)[ RSS](/packages/elephox-framework/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (10)Dependencies (27)Versions (54)Used By (2)

 [![Elephox Logo](https://raw.githubusercontent.com/elephox-dev/.github/main/profile/logo.svg)](https://raw.githubusercontent.com/elephox-dev/.github/main/profile/logo.svg)

 This is a library project providing building blocks for building your own PHP application.

 [![GitHub Workflow Status](https://camo.githubusercontent.com/960afb3c5ada0ae673cb512d25e4b399353f86d26d817cb94c0d0f32a7b82580/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656c6570686f782d6465762f6672616d65776f726b2f63692e796d6c3f6272616e63683d646576656c6f70266c6162656c3d4349266c6f676f3d676974687562267374796c653d666f722d7468652d6261646765)](https://github.com/elephox-dev/framework/actions/workflows/ci.yml) [![License](https://camo.githubusercontent.com/6b44d82dacb01c1de5691ed1ae8b0bb947b24713d70889777bfd8b7c1a755150/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656c6570686f782f6672616d65776f726b3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/elephox/framework) [![Current Version](https://camo.githubusercontent.com/064b0a337c02dbd7ae6575ea0f6f0c1054a472081de6ab72d33c3700a9a67778/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c6570686f782f6672616d65776f726b3f6c6162656c3d76657273696f6e267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/elephox/framework) [![PHP Version Require](https://camo.githubusercontent.com/963be74852c061ab18f28727f257a43a56cf6ab71f08ebeeb1a1750bbffe1ce1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f656c6570686f782f6672616d65776f726b3f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://packagist.org/packages/elephox/framework)
 [![Psalm Level](https://camo.githubusercontent.com/fd7957a7de84d81a7f6ba3428a846922471af80e4a6420397a08b03de46fa187/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f73686570686572642e6465762f6769746875622f656c6570686f782d6465762f6672616d65776f726b2f6c6576656c267374796c653d666f722d7468652d6261646765)](https://shepherd.dev/github/elephox-dev/framework) [![Type Coverage](https://camo.githubusercontent.com/5610e570f4632160fd2809d3deb3d6d49b609b0e32c3c7d7a3c767a648587cda/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470733a2f2f73686570686572642e6465762f6769746875622f656c6570686f782d6465762f6672616d65776f726b2f636f766572616765267374796c653d666f722d7468652d6261646765266c6162656c3d74797065253230636f766572616765)](https://shepherd.dev/github/elephox-dev/framework) [![Coverage Status](https://camo.githubusercontent.com/e79062c084ac3101c1574c3bc7820965d831f0afca79e51f5cefebec541b50f2/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6769746875622f656c6570686f782d6465762f6672616d65776f726b2f646576656c6f703f7374796c653d666f722d7468652d6261646765266c6162656c3d74657374253230636f766572616765)](https://coveralls.io/github/elephox-dev/framework?branch=develop) [![Mutation Score Indicator](https://camo.githubusercontent.com/65874441fda587f1fe3cc4ab2e2e4fb6923d54ae93f2884e154d28b56a211e9a/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666f722d7468652d62616467652675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246656c6570686f782d6465762532466672616d65776f726b253246646576656c6f70)](https://dashboard.stryker-mutator.io/reports/github.com/elephox-dev/framework/develop)

📚 Documentation
---------------

[](#-documentation)

Visit [elephox.dev](https://elephox.dev) for the documentation.

🎯 Goals
-------

[](#-goals)

Take a look at the goals for the first stable release here: [Milestone 1](https://github.com/elephox-dev/framework/milestone/1)

The overall project goals and future planning is done in the [GitHub projects for this repository](https://github.com/elephox-dev/framework/projects).

✨ Contributing
--------------

[](#-contributing)

Contributions in all forms are welcome. Make sure to read [elephox.dev/contributing](https://elephox.dev/contributing) for the details.

🏷️ Get the Badge
----------------

[](#️-get-the-badge)

Using Elephox in your project? Add a badge to your README:

[![Elephox Framework](https://camo.githubusercontent.com/547ded20a44005589c9a7fe2ae746a305d58c51929876df296cfc716392a117e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6672616d65776f726b2d456c6570686f782d626c75653f7374796c653d666c6174)](https://elephox.dev)

Replace the value of the `style` parameter for different styles (`flat`, `flat-square`, `plastic`, `for-the-badge`).

```
[![Elephox Framework](https://img.shields.io/badge/framework-Elephox-blue?style=flat)](https://elephox.dev)
```

```

```

📋 Source code annotations
-------------------------

[](#-source-code-annotations)

### ✅ To Do

[](#-to-do)

- [modules/Collection/src/ArrayList.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Collection/src/ArrayList.php)
    - replace generic enumerable function with array-specific functions where possible
- [modules/Collection/src/ArrayMap.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Collection/src/ArrayMap.php)
    - replace generic enumerable function with array-specific functions where possible
- [modules/Collection/src/ArraySet.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Collection/src/ArraySet.php)
    - replace generic enumerable function with array-specific functions where possible
- [modules/Collection/src/IsKeyedEnumerable.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Collection/src/IsKeyedEnumerable.php)
    - rewrite more functions to use iterators
- [modules/Collection/src/Iterator/OrderedIterator.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Collection/src/Iterator/OrderedIterator.php)
    - cache keys so they won't have to be re-calculated
- [modules/Collection/src/ObjectSet.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Collection/src/ObjectSet.php)
    - use this style of assertion error messages for all assertions
- [modules/DI/src/ServiceDescriptor.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/DI/src/ServiceDescriptor.php)
    - Update TImplementation to extend TService once [vimeo/psalm#7795](https://github.com/vimeo/psalm/issues/7795) is resolved.
- [modules/Files/test/DirectoryTest.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Files/test/DirectoryTest.php)
    - add test for symlink
- [modules/Http/test/GeneratesResponsesTest.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Http/test/GeneratesResponsesTest.php)
    - Add test for both cases in which mime\_content\_type exists and not
- [modules/Logging/test/SimpleFormatColorSinkTest.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Logging/test/SimpleFormatColorSinkTest.php)
    - write tests for background and options
- [modules/Web/src/WebApplication.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Web/src/WebApplication.php)
    - use services from scoped service provider

### ⚠️ Fixes

[](#️-fixes)

- [modules/Collection/src/IsEnumerable.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Collection/src/IsEnumerable.php)
    - de-duplicate code from IsEnumerable and IsKeyedEnumerable where possible (move iterator creation to trait and return self with created iterator)

### 🤔 Maybe

[](#-maybe)

- [modules/Web/src/Middleware/DefaultNotFoundHandler.php](https://github.com/elephox-dev/framework/tree/features/better-scopes/modules/Web/src/Middleware/DefaultNotFoundHandler.php)
    - use a standardized schema for errors in json

### 🚧 Related issues

[](#-related-issues)

- [vimeo/psalm](https://github.com/vimeo/psalm)
    - [\#7795](https://github.com/vimeo/psalm/issues/7795)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~10 days

Recently: every ~41 days

Total

45

Last Release

1141d ago

PHP version history (2 changes)v0.3PHP ~8.1.0 || ~8.2.0

v0.3.26PHP ^8.1 &lt;8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ea436f1f084470f9d75ca0fde95e2418ba03d560bc4e20e03171648c123fa80?d=identicon)[ricardoboss](/maintainers/ricardoboss)

---

Top Contributors

[![ricardoboss](https://avatars.githubusercontent.com/u/6266356?v=4)](https://github.com/ricardoboss "ricardoboss (1844 commits)")

---

Tags

dependency-injectionframeworkphptype-safety

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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