yii2framework / yiiframe-plugs
YiiFrame based plug-in center, you can install and uninstall plug-ins online
Package info
github.com/yii2framework/yiiframe-plugs
Type:yii2-extension
pkg:composer/yii2framework/yiiframe-plugs
1.1.2
2026-11-28 09:07 UTC
Requires
- yiisoft/yii2: ~2.0.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
The plugin center based on YiiFrame supports online installation and uninstallation of plugins.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yii2framework/yiiframe-plugs "*"
or add
"yii2framework/yiiframe-plugs": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
Plugin market (1.2.0+)
/plugsopens the market: plugin cards with search, category, price, install-state filters and sorting. Old routesplugs/addons/plugs|free|paystill work.- Market categories (
?cate=<id>) come from the auth server (Plug addon 1.4.0+, cached 10 minutes) and are separate from a plugin'sgroup, which still decides where the plugin appears in the site's backend menu. With an older auth server the market falls back to filtering bygroup. - The nav shows "N 个可升级" when the market has newer versions of installed plugins; it links to the market filtered to upgradable plugins, and the installed list marks each one.
- Plugin detail page
/plugs/<Name>(orplugs/addons/view?name=): screenshots, introduction, online demos (frontend / backend / H5 / mini program, with demo account and QR code), version history with changelogs, requirements (framework, dependencies with local install state), install / upgrade / choose version / buy / uninstall. Local plugins not in the market get a detail page fromAddonConfig. - Installed list: when the plugin code (
AddonConfigversion) is newer than the installed version, "Upgrade" runs the plugin'sUpgradescripts and reloads its config (plugs/addons/upgrade-local). - Developer upload (
plugs/addons/upload), after binding a market account:- upload a zip, or pack a local plugin in
addons/(skips.git,node_modules,runtime,.license); the auth server stores it privately, checks the structure and parsesAddonConfigwithout running code; - fill in the listing (prefilled from the package): screenshots, introduction, demos, changelog;
- submit for review; results and review comments are in "My uploads" (
plugs/addons/my-uploads), pending ones can be withdrawn.
- upload a zip, or pack a local plugin in
- My orders (
plugs/addons/my-orders), after binding a market account: the member's paid plugin orders (amount, bound domain, order number, payment time), whether each one is installed on this site or bound to another domain, with a link to the plugin page. Needs the auth server's Plug addon 1.4.1. - All communication with the auth server is server side; the member token is never written into pages. Introductions are filtered with HtmlPurifier before display.
- Needs the auth server's Plug addon 1.3.0 for the detail / upload APIs (1.4.0 for market categories); with an older auth server
the detail page falls back to the old
introduceAPI.