PHPackages                             gordinskiy/doctrine-fluent-mapping-bundle - 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. [Database &amp; ORM](/categories/database)
4. /
5. gordinskiy/doctrine-fluent-mapping-bundle

ActiveLibrary[Database &amp; ORM](/categories/database)

gordinskiy/doctrine-fluent-mapping-bundle
=========================================

Symfony Bundle for Fluent Mapping Driver from laravel-doctrine

v0.0.3(3y ago)054[2 issues](https://github.com/gordinskiy/DoctrineFluentMappingBundle/issues)MITPHP

Since Apr 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/gordinskiy/DoctrineFluentMappingBundle)[ Packagist](https://packagist.org/packages/gordinskiy/doctrine-fluent-mapping-bundle)[ RSS](/packages/gordinskiy-doctrine-fluent-mapping-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (4)Versions (7)Used By (0)

Doctrine Fluent Mapping Bundle
==============================

[](#doctrine-fluent-mapping-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/17d72c5cc6a5266826bb0cd5646349371f6bf3d661f300953c39edc5741d6b7c/68747470733a2f2f706f7365722e707567782e6f72672f676f7264696e736b69792f646f637472696e652d666c75656e742d6d617070696e672d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/gordinskiy/doctrine-fluent-mapping-bundle)[![Run Tests](https://github.com/gordinskiy/DoctrineFluentMappingBundle/workflows/PHP%20Tests/badge.svg?branch=master)](https://github.com/gordinskiy/DoctrineFluentMappingBundle/actions)[![codecov](https://camo.githubusercontent.com/cb356930a27cd7c0e423ae3157a6e9d222cf49cd8ad316cc8e97ed13c495d6c3/68747470733a2f2f636f6465636f762e696f2f6769746875622f676f7264696e736b69792f446f637472696e65466c75656e744d617070696e6742756e646c652f6272616e63682f74657374732f636f6465636f762f67726170682f62616467652e7376673f746f6b656e3d4f4e4438395a34543239)](https://codecov.io/github/gordinskiy/DoctrineFluentMappingBundle)[![License](https://camo.githubusercontent.com/e2218155049ebd300b3630e9df07fcc8f61d5e232bb77f01e9f44ee6d8275cb0/68747470733a2f2f706f7365722e707567782e6f72672f676f7264696e736b69792f646f637472696e652d666c75656e742d6d617070696e672d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/gordinskiy/doctrine-fluent-mapping-bundle)

Symfony Bundle for [laravel-doctrine/fluent](https://github.com/laravel-doctrine/fluent)that provide alternative PHP Mapping Driver for Doctrine ORM.
Works as extension for [doctrine/DoctrineBundle](https://github.com/doctrine/DoctrineBundle).

How It Works
------------

[](#how-it-works)

**Doctrine** provides the ability to implement your own mapping driver ([Documentation](https://www.doctrine-project.org/projects/doctrine-orm/en/2.15/reference/metadata-drivers.html#implementing-metadata-drivers)).
**Fluent Mapping Driver** - Doctrine mapping driver implementation from authors of [laravel-doctrine/orm](https://github.com/laravel-doctrine/orm)([Documentation](http://laraveldoctrine.org/docs/1.8/fluent)).

> allows you to manage your mappings in an Object Oriented approach, separating your entities from your mapping configuration without the need for configuration files like XML or YAML.

Despite the vendor name, this package does not contain any dependency on Laravel framework or its components.

**DoctrineBundle** - Symfony bundle that provides integration of Doctrine projects with Symfony framework ([Documentation](https://www.doctrine-project.org/projects/doctrine-bundle/en/2.4/index.html)).

**DoctrineFluentMappingBundle** configures Fluent Mapping Driver and registers it as default mapping driver for DoctrineBundle by replacing definition of doctrine.orm.default\_metadata\_driver.

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

[](#installation)

Run this command in your terminal:
`composer require gordinskiy/doctrine-fluent-mapping-bundle`

If you don't use Symfony Flex, you must enable the bundle manually in the application:

```
// config/bundles.php
return [
    ...
    Gordinskiy\DoctrineFluentMappingBundle\DoctrineFluentMappingBundle::class => ['all' => true],
];
```

Configuration
-------------

[](#configuration)

Create `config/packages/doctrine_fluent.yaml` file and list your entity mappings in it:

```
doctrine_fluent:
    mappings:
        - Infrastructure\Doctrine\Mappings\UserMapping
        - Infrastructure\Doctrine\Mappings\RoleMapping
        - Infrastructure\Doctrine\Mappings\AccountMapping
```

### Configure by directories list

[](#configure-by-directories-list)

You can also configure mappings by directories list:

```
doctrine_fluent:
    mappings_paths:
        - src/Context/Infrastructure/Doctrine/Mappings
        - src/SomeAnotherContext/Infrastructure/Doctrine/Mappings
        - src/ActivityLog/Infrastructure/Doctrine/Mappings
        - src/OneMoreContext/Infrastructure/Doctrine/Mappings
```

You can use absolute paths or paths relative to the project root directory.
All classes in these directories that implement [Mapping](https://github.com/laravel-doctrine/fluent/blob/1.3/src/Mapping.php) interface will be automatically registered as mappings.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

3

Last Release

1155d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60ea0e2817e9ec3aff053eae1044c57f8c7ca4743d99a49c8b66d5656acb5692?d=identicon)[DmytryHo](/maintainers/DmytryHo)

---

Top Contributors

[![gordinskiy](https://avatars.githubusercontent.com/u/72280830?v=4)](https://github.com/gordinskiy "gordinskiy (44 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gordinskiy-doctrine-fluent-mapping-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/gordinskiy-doctrine-fluent-mapping-bundle/health.svg)](https://phpackages.com/packages/gordinskiy-doctrine-fluent-mapping-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.8k](/packages/ahmed-bhs-doctrine-doctor)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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