PHPackages                             weew/app-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. weew/app-doctrine

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

weew/app-doctrine
=================

Integrates doctrine in to the weew/app package.

v1.17.0(9y ago)0741MITPHP

Since Jan 15Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (7)Versions (21)Used By (1)

App doctrine provider
=====================

[](#app-doctrine-provider)

[![Build Status](https://camo.githubusercontent.com/eb87ffd4f211606d4339f2f84689fcd8a0bbe854dae78406c1b866761a79c783/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776565772f6170702d646f637472696e652e737667)](https://travis-ci.org/weew/app-doctrine)[![Code Quality](https://camo.githubusercontent.com/060cfc0237c90c18619bc18f92978eaa097eb377d90659357406c28b3bd1dfe7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f776565772f6170702d646f637472696e652e737667)](https://scrutinizer-ci.com/g/weew/app-doctrine)[![Test Coverage](https://camo.githubusercontent.com/83e76c53d72ebeb88c5f394224b4e8e1999a17d385a6daef0e0b582b0705fe73/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f776565772f6170702d646f637472696e652e737667)](https://coveralls.io/github/weew/app-doctrine)[![Version](https://camo.githubusercontent.com/1017a58d74cae861d86b71de62156541edb5bbb5c28970f083ac2159cf37a752/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776565772f6170702d646f637472696e652e737667)](https://packagist.org/packages/weew/app-doctrine)[![Licence](https://camo.githubusercontent.com/48f35db8d64c2073d44e3d2dd21665e165d42c939602794aa3843b689983b431/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776565772f6170702d646f637472696e652e737667)](https://packagist.org/packages/weew/app-doctrine)

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Introduction](#introduction)
- [Usage](#usage)
- [Example config](#example-config)
- [Doctrine console](#doctrine-console)

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

[](#installation)

`composer require weew/app-doctrine`

Introduction
------------

[](#introduction)

This package integrates [doctrine/orm](https://github.com/doctrine/doctrine2) and [doctrine/migrations](https://github.com/doctrine/migrations) into the [weew/app](https://github.com/weew/app) framework.

Usage
-----

[](#usage)

Simply register the `DoctrineProvider` class on the application kernel:

```
$app = new App();
$app->getKernel()->addProviders([
    DoctrineProvider::class,
]);
```

Example config
--------------

[](#example-config)

This is how your config *might* look like in yaml:

```
doctrine:
  debug: true

  cache_path: path/to/cache
  proxy_classes_path: path/to/proxies
  metadata_format: "yaml" or "annotations"

  # required if metadata_format is "annotations"
  entities_paths:
    path/to/entities: Namespace\To\Entities

  # required if metadata_format is "yaml"
  entities_mappings:
    app:
      path: path/to/entities
      namespace: Some\Entities
    bundle:
      path: path/to/bundle/entities
      namespace: Other\Entities

  config:
    driver: pdo_mysql
    host: database_hostname
    dbname: database_name
    user: database_user
    password: database_password

  migrations:
    namespace: migrations/namespace
    path: migrations/directory/path
    table: migrations_table_name
```

Doctrine console
----------------

[](#doctrine-console)

You can run doctrine console tool like this:

```
$doctrineProvider->runConsoleRunner();
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity72

Established project with proven stability

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

Recently: every ~24 days

Total

20

Last Release

3593d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10b2b854b5829dd13a15967c000ed2119b5faef67aca24d94c653c8ac550d85e?d=identicon)[weew](/maintainers/weew)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/weew-app-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/weew-app-doctrine/health.svg)](https://phpackages.com/packages/weew-app-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.

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

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)

PHPackages © 2026

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