librenms/plugin-interfaces
最新稳定版本:1.0
Composer 安装命令:
composer require librenms/plugin-interfaces
包简介
Interfaces required to create a LibreNMS Plugin
README 文档
README
Plugins for LibreNMS https://github.com/librenms/librenms
Create a new Laravel Package as described: https://laravel.com/docs/packages
Require this package
composer require librenms/plugin-interfaces
Register your plugin with LibreNMS in your provider boot method and check to see if it is enabled:
public function boot(): void { $pluginName = 'example-plugin'; $pluginManager = $this->app->make(\LibreNMS\Interfaces\Plugins\PluginManagerInterface::class); $pluginManager->publishHook($pluginName, \LibreNMS\Interfaces\Plugins\MenuEntryHook::class, MenuEntryHook::class); if (! $pluginManager->pluginEnabled($pluginName)) { return; // if plugin is disabled, don't boot } // Do regular Laravel Package actions here, such as register routes and views or publish files. }
统计信息
- 总下载量: 190.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: 0BSD
- 更新时间: 2026-01-04