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

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

klsoft/yii3-doctrine-app
========================

A Yii 3 web application template that supports the Doctrine ORM

1.0.0(3w ago)00MITPHPPHP 8.2 - 8.5

Since Jun 11Pushed 3w agoCompare

[ Source](https://github.com/klsoft-web/yii3-doctrine-app)[ Packagist](https://packagist.org/packages/klsoft/yii3-doctrine-app)[ RSS](/packages/klsoft-yii3-doctrine-app/feed)WikiDiscussions main Synced today

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

YII3-DOCTRINE-APP
=================

[](#yii3-doctrine-app)

A [Yii 3](https://yii3.yiiframework.com) web application template that supports the [Doctrine ORM](https://www.doctrine-project.org/). The template includes a [Yii3 authentication](https://yiisoft.github.io/docs/guide/security/authentication.html) implementation using the [klsoft/yii3-user](https://github.com/klsoft-web/yii3-user) package for demo purposes. You can replace or remove this package as needed.

See also:

- [YII3-CACHE-DOCTRINE](https://github.com/klsoft-web/yii3-cache-doctrine) - The package provides the [PSR-16](https://www.php-fig.org/psr/psr-16/) cache using the [Doctrine ORM](https://www.doctrine-project.org/)
- [YII3-RBAC-DOCTRINE](https://github.com/klsoft-web/yii3-rbac-doctrine) - The package provides [Yii RBAC](https://github.com/yiisoft/rbac) storage using the [Doctrine ORM](https://www.doctrine-project.org/)
- [YII3-DATAREADER-DOCTRINE](https://github.com/klsoft-web/yii3-datareader-doctrine) - The package provides a [Yii 3 data reader](https://github.com/yiisoft/data?tab=readme-ov-file#reading-data) that uses the [Doctrine ORM](https://www.doctrine-project.org/)
- [YII3-CMS](https://github.com/klsoft-web/yii3-cms) - A content management system based on the [Yii 3 framework](https://yii3.yiiframework.com) and uses the [Doctrine ORM](https://www.doctrine-project.org/)

Requirements
------------

[](#requirements)

- PHP 8.2 - 8.5.

How to use
----------

[](#how-to-use)

1. Create a new project from a template using the [Composer](https://getcomposer.org/) package manager:

```
composer create-project klsoft/yii3-doctrine-app your_project
cd your_project
```

2. Configure the Doctrine connection in the `config/common/params.php`.
3. Create the database schema:

```
./yii doctrine:orm:schema-tool:create
```

4. To run the application:

```
./yii serve
```

To run the application using the specified options:

```
./yii serve --address=127.0.0.1 --port=8080
```

Open your browser to the URL

If you would prefer to use a different web server, please refer to the [Configuring web servers](https://yiisoft.github.io/docs/cookbook/configuring-webservers/general.html) section. To achieve the best performance, use the Swoole HTTP server via the [klsoft-web/yii3-swoole](https://github.com/klsoft-web/yii3-swoole) package.

How to use with Docker
----------------------

[](#how-to-use-with-docker)

1. Clone the repository.
2. Uncomment the line `'host' => 'mysql'` in the `config/common/params.php`
3. Start the application: ```
    docker compose up -d
    ```
4. Create the database schema: ```
    docker compose run --rm app ./yii doctrine:orm:schema-tool:create
    ```

Open your browser to the URL

The following the Doctrine console commands are currently available:
--------------------------------------------------------------------

[](#the-following-the-doctrine-console-commands-are-currently-available)

- doctrine:orm:schema-tool:create
- doctrine:orm:schema-tool:drop
- doctrine:orm:schema-tool:update
- doctrine:orm:validate-schema
- doctrine:orm:mapping-describe
- doctrine:orm:generate-proxies
- doctrine:orm:run-dql
- doctrine:orm:info
- doctrine:orm:clear-cache:metadata
- doctrine:orm:clear-cache:query
- doctrine:orm:clear-cache:result
- doctrine:dbal:run-sql

Display help for a command:

```
./yii  --help
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance95

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

24d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4e8ac50e4ad22be84b07f4c06d28cf280d22f689c460cd385c556727e638827?d=identicon)[klsoft-web](/maintainers/klsoft-web)

---

Top Contributors

[![klsoft-web](https://avatars.githubusercontent.com/u/7967163?v=4)](https://github.com/klsoft-web "klsoft-web (1 commits)")

---

Tags

doctrine-ormproject-templateyii3ormdoctrineappyii3

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/klsoft-yii3-doctrine-app/health.svg)](https://phpackages.com/packages/klsoft-yii3-doctrine-app)
```

###  Alternatives

[yiisoft/app

Yii3 web application template

37214.4k](/packages/yiisoft-app)[yiisoft/app-api

Yii3 API project template

1041.8k](/packages/yiisoft-app-api)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)

PHPackages © 2026

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