klsoft / yii3-doctrine-app
A Yii 3 web application template that supports the Doctrine ORM
Package info
github.com/klsoft-web/yii3-doctrine-app
Type:project
pkg:composer/klsoft/yii3-doctrine-app
1.0.0
2026-03-12 15:52 UTC
Requires
- php: 8.2 - 8.5
- ext-filter: *
- httpsoft/http-message: ^1.1.6
- klsoft/yii3-doctrine: ^1.0
- klsoft/yii3-user: ^1.1
- psr/container: ^2.0.2
- psr/http-factory: ^1.1
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0.2
- psr/log: ^3.0.2
- symfony/console: ^7.4.6 || ^8.0.6
- yiisoft/aliases: ^3.1.1
- yiisoft/assets: ^5.1.2
- yiisoft/config: ^1.6.2
- yiisoft/csrf: ^2.2.3
- yiisoft/definitions: ^3.4.1
- yiisoft/di: ^1.4.1
- yiisoft/error-handler: ^4.3.2
- yiisoft/form-model: ^1.1
- yiisoft/html: ^3.12
- yiisoft/http: ^1.3
- yiisoft/input-http: ^1.0.1
- yiisoft/log: ^2.2.0
- yiisoft/log-target-file: ^3.1
- yiisoft/middleware-dispatcher: ^5.4
- yiisoft/request-provider: ^1.3
- yiisoft/router: ^4.0.2
- yiisoft/router-fastroute: ^4.0.3
- yiisoft/session: ^3.0.1
- yiisoft/translator-message-php: ^1.1
- yiisoft/view: ^12.2.3
- yiisoft/yii-console: ^2.4.2
- yiisoft/yii-http: ^1.1.1
- yiisoft/yii-runner-console: ^2.2.1
- yiisoft/yii-runner-http: ^3.2.1
- yiisoft/yii-view-renderer: ^7.4
Requires (Dev)
- codeception/c3: ^2.9
- codeception/codeception: ^5.3.5
- codeception/module-asserts: ^3.3.0
- codeception/module-cli: ^2.0.1
- codeception/module-phpbrowser: ^3.0.2
- friendsofphp/php-cs-fixer: ^3.94.2
- phpunit/phpunit: ^11.5.55
- rector/rector: ^2.3.8
- shipmonk/composer-dependency-analyser: ^1.8.4
- vimeo/psalm: ^6.15.1
README
A Yii 3 web application template that supports the Doctrine ORM. The template includes a Yii3 authentication implementation using the klsoft/yii3-user package for demo purposes. You can replace or remove this package as needed.
See also:
- YII3-CACHE-DOCTRINE - The package provides the PSR-16 cache using the Doctrine ORM
- YII3-RBAC-DOCTRINE - The package provides Yii RBAC storage using the Doctrine ORM
- YII3-DATAREADER-DOCTRINE - The package provides a Yii 3 data reader that uses the Doctrine ORM
- YII3-CMS - A content management system based on the Yii 3 framework and uses the Doctrine ORM
Requirements
- PHP 8.2 - 8.5.
How to use
- Create a new project from a template using the Composer package manager:
composer create-project klsoft/yii3-doctrine-app your_project
cd your_project
-
Configure the Doctrine connection in the
config/common/params.php. -
Run the Doctrine console command:
APP_ENV=dev ./yii doctrine:orm:schema-tool:create
- To run the app:
APP_ENV=dev ./yii serve --port=8383
Open your browser to the URL http://localhost:8383
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:clear-cache:metadata
- doctrine:orm:validate-schema
- doctrine:orm:mapping-describe
- doctrine:orm:run-dql
- doctrine:orm:info
- doctrine:orm:generate-proxies
- doctrine:orm:clear-cache:query
- doctrine:orm:clear-cache:result
- doctrine:dbal:run-sql