PHPackages                             liketomove/yii2-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. liketomove/yii2-doctrine

ActiveYii-extension[Database &amp; ORM](/categories/database)

liketomove/yii2-doctrine
========================

Yii 2 extension wrapper to communicate with Doctrine 2.

v0.0.5(7y ago)065BSD-3-ClausePHPPHP &gt;=5.6

Since Aug 18Pushed 7y agoCompare

[ Source](https://github.com/liketomove/yii2-doctrine)[ Packagist](https://packagist.org/packages/liketomove/yii2-doctrine)[ Docs](https://github.com/liketomove/yii2-doctrine)[ RSS](/packages/liketomove-yii2-doctrine/feed)WikiDiscussions master Synced 4w ago

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

yii2-doctrine
=============

[](#yii2-doctrine)

Yii 2 extension wrapper to communicate with Doctrine 2.x.

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

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require liketomove/yii2-doctrine

```

Usage
-----

[](#usage)

For connecting doctrine components insert in you **config** file

```
'components' => [
...
       'doctrine'  => [
            'class'    => 'yii\doctrine\components\DoctrineComponent',
            'isDev'    => true,            //for development
            'driver'   => 'pdo_mysql',     //database driver
            'user'     => 'user',          //database user
            'password' => 'password',      //password
            'host'     => 'localhost',
            'dbname'   => 'dbname',        //name database
            'entityPath' => [              //paths with you entity
                'backend/models',
                'frontend/models',
                'console/models',
                'common/models',
            ]
        ]
]
```

For using doctrine console add to you **config** file

```
'controllerMap' => [
        ....
        'doctrine' => [
            'class'     => 'yii\doctrine\console\DoctrineController',
        ]
    ]
]
```

and call **./yii doctrine**, if you need transfer option use option -o=option.
For example :
\--*create* table from entity **./yii orm:schema-tool:create**
\--*update* table from entity **./yii orm:schema-tool:update -o=--force**
\--*create* table from entity **./yii orm:schema-tool:drop -o=--dump-sql** etc.

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

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

Total

5

Last Release

2589d ago

PHP version history (3 changes)v0.0.1PHP 7.1.\*

v0.0.3PHP &gt;=7.1

v0.0.5PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/34633027feb03ce653308cb2a3baa77f2104d139e5763bc1a8231ed11e2306e9?d=identicon)[liketomove](/maintainers/liketomove)

---

Top Contributors

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

---

Tags

doctrineyii2

### Embed Badge

![Health badge](/badges/liketomove-yii2-doctrine/health.svg)

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

###  Alternatives

[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.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[api-platform/doctrine-orm

Doctrine ORM bridge

314.8M106](/packages/api-platform-doctrine-orm)

PHPackages © 2026

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