Another WordPress MVC Library - WP Emerge MVC Framework
This site previously introduced a WordPress MVC framework -- Themosis Framework, this framework is based on some of the components of Laravel to build, for only need to add a small number of several MVC functionality of the site, a little heavy. Today we introduce you to another similar MVC framework "WP Emerge".
Similar to the Themosis Framework.WP Emerge Also a Laravel-inspired WordPress MVC framework, WP Emerge is a relatively lightweight WordPress MVC framework that doesn't use any Laravel components.
WP Emerge Features
- Complete routing system: includes controller, middleware, PSR-7 response and view composer.
- Any template engine can be used: You can use native PHP, Laravel Blade, Twig or any other template engine.
- Service containers: all dependencies are instantiated using IoC containers and can be replaced with custom compatible containers at will.
- Extensible: service providers, template engine, dynamic routing conditions, error handling - all customizable and extensible.
- Advanced Bug Reporting: Aesthetically pleasing and interactive stack trace representation with data dumps and source file highlighting.
- Full support for WordPress Loop: WP Emerge does not modify or override the WordPress post loop, it complements it.
- Routing middleware support: middleware can be added globally or to specific routes or route groups. Supports features such as Flash and OldInput.
WP Emerge Usage Resources
Here are some official WP Emerge documentation and learning resources to help us get started with the WP Emerge framework.
- Use the documentation:https://docs.wpemerge.com/#/framework/overviewWe can refer to the documentation to integrate WP Emerge into our existing theme.
- Getting Started Theme Code:https://github.com/htmlburger/wpemerge-themeIf you want to experience WP Emerge, you can directly clone this repository, install it in WordPress, and modify the following theme code to try the effect.
- Getting Started Theme Usage Documentation:https://docs.wpemerge.com/#/starter-theme/overviewWe can eat this document to modify the code of the starter theme, the starter theme on the basis of functionality development.
- API Reference:https://api.wpemerge.com/master/ If you encounter problems while using WP Emerge, you can try to solve them by looking up the API reference.
WP Emerge Frequently Asked Questions
No, WP Emerge is a framework that can be included in themes. It's not officially supported, but it shouldn't be very difficult to include it in a plugin.
No, although heavily inspired by Laravel, WP Emerge is very lean and tweaked for WordPress and does not include any illuminate/* packages.
Sure. One of the nice things about WP Emerge is that its integration is incremental and you can use it in older projects without having to rewrite the site logic or templates. For example, you can use NameProxyViewEngineBlade to render new templates while still rendering old templates using regular PHP.
Yes - WP Emerge is open source and free with a GPL 2.0 open source certificate, and you can see feel free to submit questions, suggestions and make requests on GitHub.
WP Emerge is suitable for any theme, it is recommended to refer to the official WP Emerge starter theme to integrate WP Emerge into your theme.
ferret outofficial documentInGitter LobbyAsking questions, inGitHub.Submit questions, feature requests and extraction requests.
After trial, we found that WP Emerge can completely realize a complete MVC process, and WordPress is also very well integrated, there is a need to use WordPress application development friends can try the following.
Kind of don't understand the model. Is this a theme or a plugin, a framework?
Looking at the Themosis Framework and the source code of the blog, I found out whether Laravel or wordpress is the main focus.
In my opinion, Themosis Framework is no longer wordpress! It's just a wordpress variant.
It's just something added on top of WordPress, it's still WordPress and doesn't affect kernel updates or theme plugin usage.
Will all this code end up in the template file?
It can all be put inside the theme file or used as a plugin.