maskulabs / inertia-app
Yii3 + Inertia.js web application template
Requires
- php: ^8.5
- ext-filter: *
- httpsoft/http-message: ^1.1.6
- maskulabs/inertia-yii: ^1.0@beta
- 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.7
- 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/html: ^3.13
- 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/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.9
- shipmonk/composer-dependency-analyser: ^1.8.4
- vimeo/psalm: ^6.15.1
This package is auto-updated.
Last update: 2026-03-17 19:17:55 UTC
README
Web application based on Yii 3 and Inertia.js.
About
This repository contains an application built on top of the
yiisoft/app template.
It includes project-specific modifications and configuration for a web application using:
- PHP 8.5
- Yii 3
- Inertia.js
- Vue 3
- Vite
Requirements
Installation
Local installation
Create a project and install dependencies:
composer create-project maskulabs/inertia-app myproject
cd myproject
npm install
Note
Ensure that Composer is executed with the same PHP version that will be used to run the application.
To run the app:
composer serve
The application should then be available at the URL printed in the console, usually:
http://localhost:8080
Docker
Warning
Docker Compose version 2.24 or newer is required.
Clone the repository and install dependencies:
make composer update
Start the development environment:
make up
Stop it:
make down
The application will be available at:
http://localhost
To see all available commands:
make help
Useful make commands
Development
make build make up make down make stop make clear make shell
Tools
make yii <command> make composer <command> make rector make cs-fix make npm <command>
Tests and analysis
make test make test-coverage make codecept <command> make psalm make composer-dependency-analyser
Production
make prod-build make prod-push make prod-deploy
Directory structure
assets/ Asset bundle source files.
config/ Configuration files.
docker/ Docker configuration.
frontend/ Frontend source files.
public/ Publicly accessible files.
runtime/ Runtime-generated files.
src/ Application source code.
tests/ Test suite.
vendor/ Composer dependencies.
Makefile Development and deployment commands.
yii Console application entry point.
Testing
The project uses Codeception and PHPUnit-based tooling.
For local execution:
./vendor/bin/codecept build APP_ENV=test ./yii serve > ./runtime/yii.log 2>&1 & ./vendor/bin/codecept run
Using Docker:
make codecept build
make test
Static analysis
Static analysis is available via Psalm:
./vendor/bin/psalm
Or with Docker:
make psalm
Attribution
This project is based on the
yiisoft/app application template by Yii Software.
License
This repository is based on software originally distributed under the BSD License.
See LICENSE.md for the full license text and terms applicable to the original code.
Unless stated otherwise, modifications contained in this repository are distributed under the same license.
