fluent maintained by laravel-doctrine
Description
A fluent PHP mapping driver for Doctrine2.
Authors
Last update
2026/02/04 02:38
(3.0.x-dev)
License
Downloads
440 176
Tags
Last update
2026/02/04 02:38
License
Require
- php ^8.1
- doctrine/orm ^3.1
- doctrine/inflector ^1.4|^2.0
- doctrine/persistence ^1.3.5|^2.0|^3.0
- doctrine/dbal ^3.8.2|^4
Last update
2026/02/04 02:38
License
Require
- php ^8.1
- doctrine/dbal ^3.8.2|^4
- doctrine/orm ^3.1
- doctrine/inflector ^1.4|^2.0
- doctrine/persistence ^1.3.5|^2.0|^3.0
Last update
2026/02/04 02:29
License
Require
- doctrine/dbal ^2.10|^3.3
- doctrine/inflector ^1.4|^2.0
- doctrine/persistence ^1.3.5|^2.0|^3.0
- php ^8.1
- doctrine/orm ^3.1
Last update
2026/02/04 02:29
License
Require
- php ^8.1
- doctrine/dbal ^2.10|^3.3
- doctrine/orm ^3.1
- doctrine/inflector ^1.4|^2.0
- doctrine/persistence ^1.3.5|^2.0|^3.0
Last update
2025/09/21 23:55
License
Require
- php ^8.1
- doctrine/dbal ^2.10|^3.3
- doctrine/orm ^3.1
- doctrine/inflector ^1.4|^2.0
- doctrine/persistence ^1.3.5|^2.0|^3.0
Last update
2025/08/01 20:34
License
Require
- doctrine/dbal ^2.10|^3.3
- doctrine/orm ^2.6
- doctrine/inflector ^1.4|^2.0
- php ^7.2|^8.0
- doctrine/persistence ^1.3.5|^2.0|^3.0
Last update
2025/08/01 20:34
License
Require
- php ^7.2|^8.0
- doctrine/dbal ^2.10|^3.3
- doctrine/orm ^2.6
- doctrine/inflector ^1.4|^2.0
- doctrine/persistence ^1.3.5|^2.0|^3.0
Last update
2024/01/10 08:46
License
Require
- php ^7.2|^8.0
- doctrine/dbal ^2.10|^3.3
- doctrine/orm ^2.6
- doctrine/inflector ^1.4|^2.0
- doctrine/persistence ^1.3.5|^2.0|^3.0
Last update
2022/04/25 07:40
License
Require
- php ^7.2|^8.0|^8.1
- doctrine/dbal ^2.10|^3.3
- doctrine/orm ^2.6
- doctrine/inflector ^1.4|^2.0
- doctrine/persistence ^1.3.5|^2.0
Last update
2022/03/07 06:32
License
Require
- php ^7.2|^8.0
- doctrine/dbal ^2.10|^3.3
- doctrine/orm ^2.6
- doctrine/inflector ^1.4|^2.0
- doctrine/persistence ^1.3.5|^2.0
Last update
2021/09/20 09:30
License
Require
- php ^7.2|^8.0
- doctrine/orm ~2.6.0|~2.7.0|~2.8.0|~2.9.5
- doctrine/inflector ^1.1
- doctrine/persistence ^1.3.5|^2.0
Last update
2021/03/17 10:24
License
Require
- php ^7.2|^8.0
- doctrine/orm ~2.6.0|~2.7.0|~2.8.0
- doctrine/inflector ^1.1
- doctrine/persistence ^1.3.5|^2.0
Last update
2021/03/02 21:03
License
Require
- php >=7
- doctrine/orm ~2.6.0|~2.7.0
- doctrine/inflector ^1.1
- doctrine/persistence ^1.3.5|^2.0
Last update
2020/03/06 21:12
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*|2.6.*|2.7.*
- doctrine/inflector ^1.1
Last update
2020/01/28 13:06
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*|2.6.*|2.7.*
- doctrine/inflector ^1.1
Last update
2018/02/27 13:11
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*|2.6.*
- doctrine/inflector ^1.1
Last update
2017/07/04 23:51
License
Require
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
- php >=5.6.0
Last update
2017/07/04 22:39
License
Require
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
- php >=5.6.0
Last update
2017/07/04 21:59
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
Last update
2017/07/02 08:47
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
Last update
2016/05/10 09:41
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
Last update
2016/04/22 16:27
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
Last update
2016/04/07 22:34
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
Last update
2016/04/07 22:34
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
Last update
2016/04/07 22:34
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
Last update
2016/04/07 22:02
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*
- doctrine/inflector ^1.1
Last update
2016/01/30 17:48
License
Require
- php >=5.5.0
- doctrine/orm 2.5.*
- illuminate/support ~5.1
Fluent Mapping Driver
A fluent mapping driver for Doctrine3
composer require laravel-doctrine/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 LaravelDoctrine\Fluent\Mapping interface, or extending the abstract classes
provided with this package for an easier use:
LaravelDoctrine\Fluent\EntityMapping, LaravelDoctrine\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');
}
}