PHPackages                             indigophp/fuelphp-doctrine - 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. indigophp/fuelphp-doctrine

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

indigophp/fuelphp-doctrine
==========================

FuelPHP Doctrine 2 integration

010PHP

Since Mar 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/indigophp/fuelphp-doctrine)[ Packagist](https://packagist.org/packages/indigophp/fuelphp-doctrine)[ RSS](/packages/indigophp-fuelphp-doctrine/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

FuelPHP Doctrine
================

[](#fuelphp-doctrine)

[![Latest Version](https://camo.githubusercontent.com/021d246bd637bca325c652d15bc04acd1b2afae149b030c7b08ca7412d4adbc5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f696e6469676f7068702f6675656c7068702d646f637472696e652e7376673f7374796c653d666c61742d737175617265)](https://github.com/indigophp/fuelphp-doctrine/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/472c85bd6ff2d97105aa9282036188173d95044b40979d8ea0fac12923f060d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6469676f7068702f6675656c7068702d646f637472696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/indigophp/fuelphp-doctrine)

**This package is a wrapper around [doctrine/doctrine2](https://github.com/doctrine/doctrine2) package.**

Install
-------

[](#install)

Via Composer

```
$ composer require indigophp/fuelphp-doctrine
```

Usage
-----

[](#usage)

Simply install this package to be able to use Doctrine inside FuelPHP.

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

[](#configuration)

To make it work, you need the following `doctrine` configuration.

```
	'dbal'                        => 'default',
	'proxy_dir'                   => '/tmp',
	'proxy_namespace'             => 'PrOxYnAmEsPaCe',
	'auto_generate_proxy_classes' => true,
	'mappings'                    => array(
		'mapping' => array(
			'type'   => 'xml',
			'dir'    => '/mypath',
			'prefix' => 'MyPrefix',
		),
	),
	'cache_driver'                => 'array',
```

You can also use the `Setup` class to auto configure the `Configuration` object.

```
	'dbal'            => 'default',
	'auto_config'     => true,
	'dev_mode'        => \Fuel::$env === \Fuel::DEVELOPMENT,
	'proxy_dir'       => '/tmp',
	'cache_driver'    => 'array',
```

### Multiple managers

[](#multiple-managers)

By default you have one manager (`default`). If you would like use multiple managers, you have to add a key `managers` to your doctrine config, and set your configurations there. You can also set global configurations in the config root. Make sure to set `auto_mapping` to `false`.

```
	'auto_mapping'    => false,
	'dbal'            => 'default',
	'managers'        => array(
		'default'   => array(),
		'aditional' => array()
	),
```

**Note:** This package uses [indigophp/fuelphp-dbal](https://github.com/indigophp/fuelphp-dbal) for connections. Check the package documentation.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Márk Sági-Kazár](https://github.com/sagikazarmark)
- [aspendigital](https://github.com/aspendigital/fuel-doctrine2)
- [All Contributors](https://github.com/indigophp/fuelphp-doctrine/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://www.gravatar.com/avatar/1585b5a08e138e348f5b646231d0f16cb2eae06501fb9462bbc97a794d4de84a?d=identicon)[TamasBarta](/maintainers/TamasBarta)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/indigophp-fuelphp-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/indigophp-fuelphp-doctrine/health.svg)](https://phpackages.com/packages/indigophp-fuelphp-doctrine)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M543](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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