PHPackages                             designbymalina/dbmframework - 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. designbymalina/dbmframework

ActiveLibrary[Framework](/categories/framework)

designbymalina/dbmframework
===========================

DBM Framework

v6.0.3(1mo ago)191MITPHPPHP ^8.1

Since Sep 18Pushed 1mo agoCompare

[ Source](https://github.com/designbymalina/dbmframework)[ Packagist](https://packagist.org/packages/designbymalina/dbmframework)[ Docs](https://dbm.org.pl)[ RSS](/packages/designbymalina-dbmframework/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (15)Versions (19)Used By (1)

DBM Framework – Lightweight PHP Framework Focused on Performance
================================================================

[](#dbm-framework--lightweight-php-framework-focused-on-performance)

DBM Framework is a lightweight PHP application engine designed for developers who want full architectural control without the complexity of heavyweight frameworks.

A framework focused on performance, simplicity, and complete control over the application architecture.

Designed for high-performance modular PHP applications.

**Fast. Flexible. PSR-compliant.**

[![PHP Version](https://camo.githubusercontent.com/1a5e13126d38c1d05f712dae30e7f60ae0444a9c882e9e526349ccba27facb8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e312d626c7565)](http://php.net)[![PSR](https://camo.githubusercontent.com/8f1b9c6aa07f44158d1b221ac20f78d8c6c10a25afec5860d8f467fbde1fb6f2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5053522d3125324325323034253243253230313125324325323031322d677265656e)](https://www.php-fig.org/)![Build](https://camo.githubusercontent.com/7d4414cbb75c840ddb7265e181d65668c1dce61ba985d79d80d4eefa06159878/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d73756363657373)![Coverage](https://camo.githubusercontent.com/32855e94577df9d0a30995653b17d33a5fbfdf644518f96ea0374313397d19b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e)[![Composer](https://camo.githubusercontent.com/7f0f43dca71ce4d815f7c5d72e7da4e3f814ff0a71ff9d2d385c70bd2b1f1c4a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d72656164792d6f72616e6765)](https://getcomposer.org/)![Speed](https://camo.githubusercontent.com/48ef8a07a7377168705c01bd04830f7ea54897e206e6b9385d7767872292b962/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706572666f726d616e63652d756c747261253230666173742d726564)[![License](https://camo.githubusercontent.com/53738e7f87529e25f4ab503cda7021407804f8b90a7e549c7ed7daad52f2ee3f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d44624d2d6f72616e6765)](https://dbm.org.pl)

The DBM v6 framework was created as a response to the excessive complexity in modern PHP frameworks.

It does not impose a complete application structure - it provides ready-made components that can be used or replaced.

Performance
-----------

[](#performance)

The framework was designed with minimal runtime overhead in mind:

- ~1.9 ms response time (with server caching enabled)
- ~3–4 ms without caching
- ~5 ms with database and templating

Measured on an external server in a development environment.

Results depend on configuration and load.

> "Laravel and Symfony are powerful and extensive. DBM focuses on speed, lightweight architecture, and full control."

Why DBM Framework?
------------------

[](#why-dbm-framework)

Unlike large frameworks:

- it doesn't dictate the application's structure
- it doesn't hide logic behind "magic"
- it doesn't introduce unnecessary layers

It gives you full control over your code and performance.

DBM is a framework that doesn't fight the developer - it lets them work the way they want.

Features
--------

[](#features)

The framework provides the minimal set of tools needed to build applications—without unnecessary layers and overhead.

- Modular architecture (PSR-4 compliant)
- Lightweight middleware pipeline (PSR-style request flow)
- Flexible routing system
- Lightweight Dependency Injection container (no reflective magic)
- Event-driven extensibility
- CLI support via the application layer
- Framework core only (no CMS, no platform, no UI layer)
- Minimal runtime overhead (focused on high performance)

No hidden mechanisms or automatic configuration – everything works transparently and predictably.

Performance First Architecture
------------------------------

[](#performance-first-architecture)

DbM Framework was designed with one primary goal: maximum performance with minimal overhead.

From routing and dependency loading to templating and API responses - every layer is optimized for speed and flexibility.

⭐ If you like the project, leave a star on GitHub.

[![DBM Framework](https://camo.githubusercontent.com/3d6f48ae7141191e78d9c7321d0dd4633bae7c7d470330204ab7d0331e0d6d38/68747470733a2f2f64626d2e6f72672e706c2f696d616765732f706167652f7061636b616765732f64626d6672616d65776f726b2d62656e63686d61726b6163682e706e67)](https://camo.githubusercontent.com/3d6f48ae7141191e78d9c7321d0dd4633bae7c7d470330204ab7d0331e0d6d38/68747470733a2f2f64626d2e6f72672e706c2f696d616765732f706167652f7061636b616765732f64626d6672616d65776f726b2d62656e63686d61726b6163682e706e67)

> Local benchmark tests showed significantly lower runtime overhead compared to many popular PHP frameworks.

### Projects based on DBM Framework

[](#projects-based-on-dbm-framework)

- DBM CMS
- DBM Platform
- API systems
- Modular web applications

Built-in components
-------------------

[](#built-in-components)

The framework includes a set of lightweight infrastructure components needed to build web applications.

### HTTP and Application

[](#http-and-application)

- HTTP routing
- Middleware (request/response pipeline)
- Dependency Injection container
- Event and listener system
- CLI console mechanism (implemented in the application layer)

### Data and presentation

[](#data-and-presentation)

- Template system (DbM View Engine)
- Data access layer (Doctrine DBAL compatible Query Builder)
- Translation system
- Form validator

### Infrastructure

[](#infrastructure)

- Session system and cookies
- File system + file and image upload
- Logger
- Error handler
- Mailer interface
- Helpers and sanitizers

The components are lightweight, modular, and can be replaced with a custom implementation (e.g., Twig instead of the built-in view engine).

The framework was designed as a modular monolith – components can be developed independently, maintaining the simplicity of implementing a single application.

Template Engine
---------------

[](#template-engine)

The framework uses the lightweight DbM View Engine by default.

- Fast and dependency-free
- Based directly on PHP (no DSL)
- Extensible via callbacks

Can be replaced with another engine (e.g. Twig).

Philosophy
----------

[](#philosophy)

DBM Framework separates responsibilities into distinct layers:

- **Framework = execution engine**
- **Application Layer = fully user-defined**
- **CMS / Platform = optional ecosystem extensions**

The core remains lightweight, predictable, and reusable.

DBM Framework avoids heavy reflection-based autowiring and instead favors explicit dependency registration.

Services are intentionally registered using lightweight container methods such as `singleton()` or `set()`, providing predictable execution flow, lower runtime overhead, and full architectural control.

Project History
---------------

[](#project-history)

The DBM Framework evolved in stages – from a simple micro-framework to a full application ecosystem.

- **v1 / v2** - project beginnings and architectural experiments
- **v3 / v4** - lightweight monolithic microframework
- **v5** - transition to a modular monolith architecture
- **v6** - separation of the framework engine from the application layer and development of the DBM ecosystem

The current version focuses on performance, modularity, and full control over the application architecture.

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

[](#installation)

Requirements:

- PHP 8.1 or later
- Composer

```
composer require designbymalina/dbmframework
```

After installation, create the application layer (bootstrap) responsible for running the framework.

Basic Usage
-----------

[](#basic-usage)

DBM Framework is not a standalone application. It must be used within its own application layer.

**Example:**

Below is a minimal example of running an application based on DBM Framework.

```
// example/index.php

declare(strict_types=1);

use Dbm\Core\Paths;

$baseDirectory = realpath(dirname(__DIR__));

require_once $baseDirectory . '/vendor/autoload.php';

Paths::setBasePath($baseDirectory);

$appFactory = require __DIR__ . '/bootstrap/app.php';

$app = $appFactory();

$response = $app->run();

$response->send();
```

**Process:**

1. Set the base path
2. Load the autoloader
3. Create the application via the factory
4. Start the request -&gt; response lifecycle

### Minimal application structure

[](#minimal-application-structure)

- bootstrap/app.php - application factory
- bootstrap/services.php - DI container configuration
- bootstrap/controller.php - example controller

```
php -S localhost:8000 example/index.php
```

URL: `http://localhost:8000/`

### Routing example

[](#routing-example)

```
$router->get('/path', [NameController::class, 'methodName'], 'route_name');
```

A simple example of mapping a URL path to a controller.

Details:

- [Web Routing](_Docs/03_01-web-routing.md)
- [API Routing](_Docs/03_02-api-routing.md)

Modular Architecture
--------------------

[](#modular-architecture)

The DBM Framework supports a modular monolith approach.

An application can be developed as a set of independent modules with a clear separation of concerns while maintaining the simplicity of a single system implementation.

**Architecture Overview**

The framework operates based on the following cycle:

Request -&gt; Routing -&gt; Middleware -&gt; Controller -&gt; Response

More: [Architecture](_Docs/01_00-1-architecture.md)

**The DBM framework consists of:**

- kernel (request lifecycle)
- router (flexible routing)
- middleware dispatcher
- container (DI)

Design Principles
-----------------

[](#design-principles)

- no global state
- no hidden magic
- explicit configuration
- composition instead of inheritance

Development
-----------

[](#development)

Cloning the repository and installing dependencies:

```
git clone https://github.com/designbymalina/dbmframework
cd dbmframework
composer install
```

or via GitHub CLI.

When to use DBM Framework
-------------------------

[](#when-to-use-dbm-framework)

The framework is suitable when:

- you're building your own system from scratch
- you need high performance
- you don't want an opinionated framework (like Laravel/Symfony)
- you're creating an API or backend for your application

It's not a "plug &amp; play" framework; it requires building your own application layer.

If you need a ready-made solution, see DBM Platform.

[DBM Platform - framework-based application (GitHub)](https://github.com/designbymalina/dbmplatform)

DBM Ecosystem
-------------

[](#dbm-ecosystem)

DBM Framework is part of a larger ecosystem:

- DBM Framework - application engine
- DBM Platform - ready-made application layer

The platform extends the framework with an administration panel, authentication, and application modules.

More: [Ecosystem](_Docs/01_00-2-ecosystem.md)

Documentation
-------------

[](#documentation)

Full framework documentation is available in the `/_Docs` directory.

Start:

- [Introduction](_Docs/01_01-introduction.md)
- [Architecture](_Docs/01_00-1-architecture.md)
- [Ecosystem](_Docs/01_00-2-ecosystem.md)

License
-------

[](#license)

Project licensed under the MIT License.

Copyright (c) Design by Malina

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance91

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Recently: every ~2 days

Total

18

Last Release

42d ago

Major Versions

v3.x-dev → v4.0.02025-10-22

v4.x-dev → v5.0.12026-02-02

v5.3.x-dev → v6.x-dev2026-05-05

PHP version history (2 changes)v3.1PHP ^8.0

v4.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/464589e1fa554d91de991e5cfabb437d0b60426664de4166b81314130be98642?d=identicon)[designbymalina](/maintainers/designbymalina)

---

Top Contributors

[![designbymalina](https://avatars.githubusercontent.com/u/232852683?v=4)](https://github.com/designbymalina "designbymalina (11 commits)")

---

Tags

cmscms-frameworkframeworklightweightmodular-monolithmvcmvc-frameworkmvpmvp-developmentphpphp-frameworkpsrphpframeworkdependency-injectionroutermodular

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[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)[typo3/cms-core

TYPO3 CMS Core

3312.9M4.8k](/packages/typo3-cms-core)[slim/slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs

12.3k51.8M1.4k](/packages/slim-slim)[shopware/platform

The Shopware e-commerce core

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

PHPackages © 2026

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