klsoft/yii3-doctrine-app

A Yii 3 web application template that supports the Doctrine ORM

Maintainers

Package info

github.com/klsoft-web/yii3-doctrine-app

Type:project

pkg:composer/klsoft/yii3-doctrine-app

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

This package is auto-updated.

Last update: 2026-03-12 15:54:32 UTC


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:

Requirements

  • PHP 8.2 - 8.5.

How to use

  1. Create a new project from a template using the Composer package manager:
composer create-project klsoft/yii3-doctrine-app your_project
cd your_project
  1. Configure the Doctrine connection in the config/common/params.php.

  2. Run the Doctrine console command:

APP_ENV=dev ./yii doctrine:orm:schema-tool:create
  1. 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