PHPackages                             adrosoftware/fluent - 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. adrosoftware/fluent

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

adrosoftware/fluent
===================

A fluent PHP mapping driver for Doctrine2.

v1.0.0(6y ago)028MITPHPPHP &gt;=5.6.0CI failing

Since Oct 27Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Fluent Mapping Driver
=====================

[](#fluent-mapping-driver)

> **This is a fork of [laravel-doctrin/fluent](https://github.com/laravel-doctrine/fluent) with some modifications**

*A fluent mapping driver for Doctrine2*

```
composer require adrosoftware/fluent

```

This mapping driver 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. This is done by implementing the `AdroSoftware\Fluent\Mapping` interface, or extending the abstract classes provided with this package for an easier use: `AdroSoftware\Fluent\EntityMapping`, `AdroSoftware\Fluent\EmbeddableMapping` or `MappedSuperClassMapping`.

This package provides a fluent Builder over Doctrine's `ClassMetadataBuilder`, aimed at easing usage of Doctrine's mapping concepts in Laravel. The builder adds syntax sugar and implements the same grammar that you might use in Laravel migrations.

```
class ScientistMapping extends EntityMapping
{
    /**
     * Returns the fully qualified name of the class that this mapper maps.
     *
     * @return string
     */
    public function mapFor()
    {
        return Scientist::class;
    }

    /**
     * Load the object's metadata through the Metadata Builder object.
     *
     * @param Fluent $builder
     */
    public function map(Fluent $builder)
    {
        $builder->increments('id');
        $builder->embed(Name::class, 'name');

        $builder->hasMany(Theory::class, 'theories')->ownedBy('scientist');
    }
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

2391d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ba004d502228eb272341845427581da17399ec8b4315ce16c99b298ec0a414f?d=identicon)[adrorocker](/maintainers/adrorocker)

---

Top Contributors

[![adrorocker](https://avatars.githubusercontent.com/u/1872940?v=4)](https://github.com/adrorocker "adrorocker (2 commits)")

---

Tags

databaseormdoctrinefluentdata mappermappingsmapping driver

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-doctrine/fluent

A fluent PHP mapping driver for Doctrine2.

43430.3k13](/packages/laravel-doctrine-fluent)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[laravel-doctrine/migrations

Doctrine Migrations for Laravel

782.8M16](/packages/laravel-doctrine-migrations)[laravel-doctrine/acl

ACL for Laravel and Doctrine

44445.3k7](/packages/laravel-doctrine-acl)[mediagone/doctrine-specifications

Doctrine implementation of repository Specifications pattern

353.8k3](/packages/mediagone-doctrine-specifications)

PHPackages © 2026

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