PHPackages                             codefyphp/codefy - 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. codefyphp/codefy

ActiveLibrary[Framework](/categories/framework)

codefyphp/codefy
================

PHP framework for Domain Driven Development, CQRS, and Event Sourcing.

v3.2.1(4w ago)26274[1 issues](https://github.com/codefyphp/codefy/issues)3MITPHPPHP &gt;=8.4

Since Sep 10Pushed 4w ago1 watchersCompare

[ Source](https://github.com/codefyphp/codefy)[ Packagist](https://packagist.org/packages/codefyphp/codefy)[ GitHub Sponsors](https://github.com/nomadicjosh)[ RSS](/packages/codefyphp-codefy/feed)WikiDiscussions 3.2.x Synced 3w ago

READMEChangelog (10)Dependencies (93)Versions (57)Used By (3)

 [![CodefyPHP Logo](https://camo.githubusercontent.com/d562c5636bbef08daba952bf39ce41af0b796d2861b7810d3d63c88740b6161f/68747470733a2f2f646f776e6c6f6164732e6a6f736875617061726b65722e626c6f672f696d616765732f636f646566797068702d343630783130352e706e67)](https://codefyphp.com/)
==================================================================================================================================================================================================================================================================================

[](#----)

 [![Latest Stable Version](https://camo.githubusercontent.com/29079341442cb891627b649f56326cae36800c2590874eb2fc0ccdbe9383ca65/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f436f646566795048502f636f646566793f6c6162656c3d436f64656679504850267374796c653d666f722d7468652d6261646765)](https://github.com/codefyphp/) [![PHP 8.4](https://camo.githubusercontent.com/e68f414e9b318f4ea94f3efb4222dc49a11937502214f6a67d3c241a6e7b2786/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d3737374242342e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://www.php.net/) [![License](https://camo.githubusercontent.com/54a46026762619ad976fc0aba1d18822d3e0c257daa0047c2d68ffc4f0597acb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f646566797068702f636f646566793f7374796c653d666f722d7468652d626164676526636f6c6f723d306161363738)](https://packagist.org/packages/codefyphp/codefy) [![Total Downloads](https://camo.githubusercontent.com/cba73f2b157a895402e0138954340dac561c03338863224bbef48350037a8d6d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f646566797068702f636f646566793f7374796c653d666f722d7468652d626164676526636f6c6f723d434435433543)](https://packagist.org/packages/codefyphp/codefy) [![CodefyPHP Support Forum](https://camo.githubusercontent.com/8d6ed45560890302d6b28455a47c87c441e3c9c0f74eabeb0df21fc38edc2097/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f466f72756d2d4145353038442e7376673f6c6162656c3d537570706f7274267374796c653d666f722d7468652d6261646765)](https://forum.codefyphp.com/)

---

> This repository contains the CodefyPHP Framework. If you are looking for an easier way to get started quickly, you can check out the starter app: [CodefyPHP Skeleton](https://github.com/codefyphp/skeleton).

CodefyPHP is **not** a framework such as the likes of Symfony, Laravel, Codeigniter or CakePHP. Codefy is a simple, light framework providing interfaces and implementations for architecting a Domain Driven project with CQRS, Event Sourcing and implementations of [PSR-3](https://www.php-fig.org/psr/psr-3), [PSR-6](https://www.php-fig.org/psr/psr-6), [PSR-7](https://www.php-fig.org/psr/psr-7), [PSR-11](https://www.php-fig.org/psr/psr-11), [PSR-12](https://www.php-fig.org/psr/psr-12/), [PSR-14](https://www.php-fig.org/psr/psr-14/), [PSR-15](https://www.php-fig.org/psr/psr-15), [PSR-16](https://www.php-fig.org/psr/psr-16)and [PSR-17](https://www.php-fig.org/psr/psr-17).

The philosophy of Codefy is that code should be systematized, maintainable, and follow OOP (Object-Oriented Programming). CodefyPHP tries not to be too opinionated, yet encourages best practices and coding standards by following [Qubus Coding Standards](https://github.com/QubusPHP/qubus-coding-standard). Use Codefy as you see fit. You can tap into all, some or none of the features and instead use the interfaces to build your own implementations for a domain driven project.

###  [ ![TDD With DomainEvents in CodefyPHP - ASMR With Mechanical Keyboard](https://camo.githubusercontent.com/59dd6db295afa1ab1230f58bc5aabd3a440e4bdfe31a659626f8eefb312fc415/68747470733a2f2f646f776e6c6f6164732e6a6f736875617061726b65722e626c6f672f696d616765732f7464642d636f646566797068702e706e67) ](https://www.youtube.com/watch?v=yIMxbmc-gq8)

[](#----------------)

📍 Requirement
-------------

[](#-requirement)

- PHP 8.4+
- Additional constraints based on which components are used.

🏆 Highlighted Features
----------------------

[](#-highlighted-features)

- A powerful [routing engine](https://docs.qubusphp.com/routing/)
- Robust [dependency injector](https://docs.qubusphp.com/dependency-injector/) for bootstrapping
- Adapters for cookies, sessions and cache storage
- Provides a simple hook and event system without affecting core code
- Encourages object-oriented programming
- Multiple PSR implementations
- Dual query builders with migrations
- Scheduler for scheduling tasks/jobs
- Security and sanitizing helpers
- Dual templating engines
- NIST Level 2 Standard Role-Based Access Control

📦 Installation
--------------

[](#-installation)

You can use the composer command below to install the library, or by creating a new Codefy project using the [skeleton](https://github.com/CodefyPHP/skeleton) package.

```
composer require codefyphp/codefy
```

🕑 Releases
----------

[](#-releases)

VersionMinimum PHP VersionRelease DateBug Fixes UntilSecurity Fixes Until18.2September 2023July 2024EOL2 - LTS8.2September 2024September 2027January 20283.08.4October 2025August 2026December 20273.18.4February 2026February 2027June 20283.28.4May 2026March 2027July 20283.38.4July 2026April 2027August 20283.4 - LTS8.4August 2026March 2027July 20284.08.5October 2026June 2027October 2028📘 Documentation
---------------

[](#-documentation)

Documentation is still a work in progress. Between the [Qubus Components](https://docs.qubusphp.com/) documentation and [CodefyPHP's](https://codefyphp.com/docs/) documentation, that should help you get started. If you have questions or need help, feel free to ask for help in the [forums](https://forum.codefyphp.com/).

🙌 Sponsors
----------

[](#-sponsors)

If you use CodefyPHP or you are interested in supporting the continued development of my opensource projects, please consider sponsoring me via [Github](https://github.com/sponsors/nomadicjosh).

🖋 Contributing
--------------

[](#-contributing)

CodefyPHP could always be better! If you are interested in contributing enhancements or bug fixes, here are a few rules to follow in order to ease code reviews, and discussions before I accept and merge your work.

- You MUST follow the [QubusPHP Coding Standards](https://github.com/QubusPHP/qubus-coding-standard).
- You MUST write (or update) unit tests.
- You SHOULD write documentation.
- Please, write [commit messages that make sense](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html), and rebase your branch before submitting your Pull Request.
- Please [squash your commits](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html) too. This is used to "clean" your Pull Request before merging it (I don't want commits such as `fix tests`, `fix 2`, `fix 3`, etc.).

🔐 Security Vulnerabilities
--------------------------

[](#-security-vulnerabilities)

If you discover a vulnerability in the code, please email .

📄 License
---------

[](#-license)

CodefyPHP is opensource software licensed under the [MIT License](https://opensource.org/license/MIT/).

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance93

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity75

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 ~18 days

Recently: every ~5 days

Total

54

Last Release

29d ago

Major Versions

v1.0.5 → v2.0.0-BETA12023-10-28

1.x-dev → v2.0.0-BETA22023-11-19

v2.1.6 → v3.0.0-beta.12025-08-24

2.x-dev → v3.1.12026-03-12

PHP version history (2 changes)v1.0.0PHP &gt;=8.2

v3.0.0-beta.1PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/86d25d805eb5b710fab925600008b72f9f5f11a5206154fcd1ded01794a4d1b8?d=identicon)[nomadicjosh](/maintainers/nomadicjosh)

---

Top Contributors

[![nomadicjosh](https://avatars.githubusercontent.com/u/2042176?v=4)](https://github.com/nomadicjosh "nomadicjosh (521 commits)")

---

Tags

cqrscqrs-esdomain-driven-designdomain-driven-developmentdomain-driven-frameworkevent-sourcinghacktoberfestcontainerframeworkroutingapplicationphp frameworkcodefycodefyphpcodefy-php

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M517](/packages/shopware-core)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[oro/platform

Business Application Platform (BAP)

642140.7k104](/packages/oro-platform)

PHPackages © 2026

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