mkevenaar/netbox 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mkevenaar/netbox

最新稳定版本:3.0.0

Composer 安装命令:

composer require mkevenaar/netbox

包简介

Netbox for PHP

关键字:

README 文档

README

Note, this is a fork of the Wicked Software Corp. "Laravel NetBox" Package, original Credits go to them.

Note, this is a fork of the "port389/netbox-php" Package, original Credits go to them

The Package was refactored to allow Installation as a standalone composer package (thus is available under the mkevenaar namespace for this package). The package was tested against NetBox v3.2.2 while implementing NetBox in the company I'm working for in "scratch your own itch"-Mode. We mainly use the IPAM module in NetBox, other components are not heavily tested.

Installation

composer require mkevenaar/netbox

Environment Variables

The package requires 2 environment variables being set accessible through getenv()

Variable Type Default Description
NETBOX_API string "" the NetBox API Endpoint (e.g. http://localhost:8080/api)
NETBOX_API_KEY string "" The NetBox API Key created from eg http://127.0.0.1:8080/user/api-tokens/

Example Usage

$api = new \mkevenaar\NetBox\Api\IPAM\IpAddresses(new \mkevenaar\NetBox\Client()); $result = $api->add([ 'address' => '11.22.33.44/32', 'dns_name' => 'foo.example.com' ]); $result = $api->list(['address' => '11.22.33.44/32'])

Supported NetBox APIs

统计信息

  • 总下载量: 21.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04