klsoft/yii3-doctrine-app
最新稳定版本:1.0.0
Composer 安装命令:
composer create-project klsoft/yii3-doctrine-app
包简介
A Yii 3 web application template that supports the Doctrine ORM
关键字:
README 文档
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. - Create the database schema:
./yii doctrine:orm:schema-tool:create
- To run the application:
./yii serve --port=8383
Open your browser to the URL http://localhost:8383
How to use with Docker
- Clone the repository.
- Uncomment the line
'host' => 'mysql'in theconfig/common/params.php - Start the application:
docker compose up -d
- Create the database schema:
docker compose run --rm app ./yii doctrine:orm:schema-tool:create
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: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 <command> --help
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-14