Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] Yii 3.0 compatibility #651

Open
trntv opened this issue Nov 21, 2018 · 5 comments
Open

[Discussion] Yii 3.0 compatibility #651

trntv opened this issue Nov 21, 2018 · 5 comments

Comments

@trntv
Copy link
Collaborator

trntv commented Nov 21, 2018

No description provided.

@XzAeRo
Copy link
Member

XzAeRo commented Nov 21, 2018

Just in case. Yii 3+ is just a restructuring of the framework into smaller packages, so, in theory, it shouldn't take to much time to migrate everything.

Docs about Yii3 status and future roadmap for Yii: https://github.com/yiisoft/yii-core/blob/master/ROADMAP.md

@XzAeRo
Copy link
Member

XzAeRo commented Jan 31, 2019

The new Yii3 approach will discontinue the "advanced app" template since they are adopting the "each application a service" approach. You can check more about this in the UPGRADE.md file in the new yii-core project.

And why the advanced app will be discontinued? Because configuration files will have to be managed through composer: https://github.com/hiqdev/composer-config-plugin killing the multi-config approach we have in the advanced app and in this project.

This is an extract of the UPGRADE.md file mentioned above.

screenshot_2019-01-31 yiisoft yii-core 1

So what does this mean? For the next upgrade we may need to separate each part (API, storage, frontend, backend, console), into it's own project, OR we try to make just one big simple application with several modules for each section.

What should we do?

@XzAeRo XzAeRo pinned this issue Jan 31, 2019
@XzAeRo XzAeRo changed the title Yii 3.0 compatibility [Discussion] Yii 3.0 compatibility Jan 31, 2019
@kwazaro
Copy link

kwazaro commented May 23, 2019

I think one application with modules for "console", "api", "backend" etc. is the best way to go.

@Buliwyfa
Copy link

yes my opinion goes for 1 app with modules as @kwazaro  proposed

@XzAeRo
Copy link
Member

XzAeRo commented May 18, 2020

Some updates for those who are interested:

  • The new Yii3 application structures is vastly different from what we currently have in Yii2. There are no "modules", rather than different applications bundled together with a special URL router (similar to what Symfony/Django does). We now have RouterFactory, Middleware, Dispatchers, Entities and several other changes to the framework that make it impossible to migrate directly.
  • The new Yii3 starter kit will be in a separate repository. We will try to match the features 1:1.
  • The Yii2 starter kit will be maintained and updated until it's EOL.
  • Given the new approach of Yii3, we will be creating starter kits with some popular frontend frameworks too (like React, Vue, etc.), besides the native renderer. I'm not really sure how to handle this, but the idea will be to have something like different repositories for each frontend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants