defyma / yii2-react-basic
Yii 2 React template
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 2
Open Issues: 0
Type:project
Requires
- php: >=5.4.0
- defyma/yii2-minifier: ^1.2
- yiisoft/yii2: ~2.0.14
- yiisoft/yii2-bootstrap: ~2.0.0
- yiisoft/yii2-swiftmailer: ~2.0.0
Requires (Dev)
- codeception/base: ~2.3.0
- codeception/specify: ~0.4.6
- codeception/verify: ~0.4.0
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
This package is auto-updated.
Last update: 2025-03-13 06:55:18 UTC
README
Yii2 as backend service API (ajax), and react as view in yii2 in 1 bundle + use native php/yii2 navigation
- JSX file dir in "@app/react/{following with controller and action dir}"
- Develompent Build in "@app/chunk"
- Build file dir in "@web/build"
How to:
Using composer ceate project:
composer create-project defyma/yii2-react-basic <folder>
then:
$ cd <folder>
$ npm install
$ npm start
Manual:
- clone this repo
- composer install
- npm install
- npm start
For Build Prod
npm run build
FYI
This template use native php/yii2 navigation 1 view = 1 react-dom, if you expert on react you can custom with react-router, redux, etc..