創(chuàng)建應(yīng)用插件
唯一標(biāo)識
每個插件都有一個唯一的應(yīng)用標(biāo)識,開發(fā)者開發(fā)之前需要想好標(biāo)識,并且檢測標(biāo)識沒有被占用。
檢測地址應(yīng)用標(biāo)識檢測
創(chuàng)建
執(zhí)行composer require webman/console
安裝webman命令行
使用命令php webman app-plugin:create {插件標(biāo)識}
可以在本地創(chuàng)建一個應(yīng)用插件
例如 php webman app-plugin:create foo
重啟webman
訪問 http://127.0.0.1:8787/app/foo
如果有返回內(nèi)容說明創(chuàng)建成功。