Demo diary application built on Yii3 framework using vertical slice architecture — code is organized by features rather than technical layers. Demonstrates user management, category and post CRUD, authentication, and database migrations.
Features:
- Diary with categories and posts (create, read, update, delete)
- User management with GridView list powered by htmx — pagination, sorting, and filtering work via AJAX without full page reloads
- Authentication and access control
- Database migrations via Yii DB Migration
- PHP 8.5 or higher.
-
Clone this repository.
-
Move to your project root directory.
-
Install composer dependencies:
composer install
# or via docker
make init- Apply migrations:
# Linux
./yii migrate:up
# Windows
yii migrate:up
# or via docker
make migrate-up- Run application:
# Linux
./yii serve
# Windows
yii server
# or via docker
make upThe application will be started on http://127.0.0.1:8080/.
If you need help or have a question, check out Yii Community Resources.
The Yii3 Demo Diary is free software. It is released under the terms of the BSD License.
Please see LICENSE for more information.
Maintained by Yii Software.