PHPackages                             mkevenaar/netbox - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mkevenaar/netbox

ActiveLibrary

mkevenaar/netbox
================

Netbox for PHP

3.0.0(2y ago)426.0k↓20%3[1 issues](https://github.com/mkevenaar/netbox-php/issues)[1 PRs](https://github.com/mkevenaar/netbox-php/pulls)MITPHPPHP ^8.1|^8.0|^7.4|^7.3|^7.2

Since Mar 12Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/mkevenaar/netbox-php)[ Packagist](https://packagist.org/packages/mkevenaar/netbox)[ RSS](/packages/mkevenaar-netbox/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (30)Used By (0)

NetBox PHP
==========

[](#netbox-php)

Note, this is a fork of the Wicked Software Corp. "[Laravel NetBox](https://github.com/wickedsoft/laravel-netbox)" Package, original Credits go to them.

Note, this is a fork of the "[port389/netbox-php](https://github.com/hexa2k9/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](https://github.com/netbox-community/netbox/releases/tag/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
------------

[](#installation)

```
composer require mkevenaar/netbox
```

### Environment Variables

[](#environment-variables)

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

VariableTypeDefaultDescriptionNETBOX\_APIstring""the NetBox API Endpoint (e.g. `http://localhost:8080/api`)NETBOX\_API\_KEYstring""The NetBox API Key created from eg `http://127.0.0.1:8080/user/api-tokens/`Example Usage
-------------

[](#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
---------------------

[](#supported-netbox-apis)

- Circuits
    - [CircuitTerminations](src/Api/Circuits/CircuitTerminations.php)
    - [CircuitTypes](src/Api/Circuits/CircuitTypes.php)
    - [Circuits](src/Api/Circuits/Circuits.php)
    - [Providers](src/Api/Circuits/Providers.php)
- DCIM
    - [Cables](src/Api/DCIM/Cables.php)
    - [ConnectedDevices](src/Api/DCIM/ConnectedDevices.php)
    - [ConsoleConnections](src/Api/DCIM/ConsoleConnections.php)
    - [ConsolePortTemplates](src/Api/DCIM/ConsolePortTemplates.php)
    - [ConsolePorts](src/Api/DCIM/ConsolePorts.php)
    - [ConsoleServerPortTemplates](src/Api/DCIM/ConsoleServerPortTemplates.php)
    - [ConsoleServerPorts](src/Api/DCIM/ConsoleServerPorts.php)
    - [DeviceBayTemplates](src/Api/DCIM/DeviceBayTemplates.php)
    - [DeviceBays](src/Api/DCIM/DeviceBays.php)
    - [DeviceRoles](src/Api/DCIM/DeviceRoles.php)
    - [DeviceTypes](src/Api/DCIM/DeviceTypes.php)
    - [Devices](src/Api/DCIM/Devices.php)
    - [FrontPortTemplates](src/Api/DCIM/FrontPortTemplates.php)
    - [FrontPorts](src/Api/DCIM/FrontPorts.php)
    - [InterfaceConnections](src/Api/DCIM/InterfaceConnections.php)
    - [InterfaceTemplates](src/Api/DCIM/InterfaceTemplates.php)
    - [Interfaces](src/Api/DCIM/Interfaces.php)
    - [InventoryItems](src/Api/DCIM/InventoryItems.php)
    - [Manufacturers](src/Api/DCIM/Manufacturers.php)
    - [ModuleBays](src/Api/DCIM/ModuleBays.php)
    - [Modules](src/Api/DCIM/Modules.php)
    - [Platforms](src/Api/DCIM/Platforms.php)
    - [PowerFeeds](src/Api/DCIM/PowerFeeds.php)
    - [PowerOutletTemplates](src/Api/DCIM/PowerOutletTemplates.php)
    - [PowerOutlets](src/Api/DCIM/PowerOutlets.php)
    - [PowerPanels](src/Api/DCIM/PowerPanels.php)
    - [PowerPortTemplates](src/Api/DCIM/PowerPortTemplates.php)
    - [PowerPorts](src/Api/DCIM/PowerPorts.php)
    - [RackGroups](src/Api/DCIM/RackGroups.php)
    - [RackReservations](src/Api/DCIM/RackReservations.php)
    - [RackRoles](src/Api/DCIM/RackRoles.php)
    - [Racks](src/Api/DCIM/Racks.php)
    - [RearPortTemplates](src/Api/DCIM/RearPortTemplates.php)
    - [RearPorts](src/Api/DCIM/RearPorts.php)
    - [Regions](src/Api/DCIM/Regions.php)
    - [Sites](src/Api/DCIM/Sites.php)
    - [VirtualChassis](src/Api/DCIM/VirtualChassis.php)
- Extras
    - [ConfigContexts](src/Api/Extras/ConfigContexts.php)
    - [ContentTypes](src/Api/Extras/ContentTypes.php)
    - [CustomFields](src/Api/Extras/CustomFields.php)
    - [ExportTemplates](src/Api/Extras/ExportTemplates.php)
    - [ImageAttachments](src/Api/Extras/ImageAttachments.php)
    - [JobResults](src/Api/Extras/JobResults.php)
    - [ObjectChanges](src/Api/Extras/ObjectChanges.php)
    - [Reports](src/Api/Extras/Reports.php)
    - [Scripts](src/Api/Extras/Scripts.php)
    - [Tags](src/Api/Extras/Tags.php)
- IPAM
    - [Aggregates](src/Api/IPAM/Aggregates.php)
    - [IpAddresses](src/Api/IPAM/IpAddresses.php)
    - [Prefixes](src/Api/IPAM/Prefixes.php)
    - [Rirs](src/Api/IPAM/Rirs.php)
    - [Roles](src/Api/IPAM/Roles.php)
    - [RouteTargets](src/Api/IPAM/RouteTargets.php)
    - [Services](src/Api/IPAM/Services.php)
    - [VlanGroups](src/Api/IPAM/VlanGroups.php)
    - [Vlans](src/Api/IPAM/Vlans.php)
    - [Vrfs](src/Api/IPAM/Vrfs.php)
- Secrets
    - [KeyGen](src/Api/Secrets/KeyGen.php)
    - [SecretRoles](src/Api/Secrets/SecretRoles.php)
    - [Secrets](src/Api/Secrets/Secrets.php)
    - [Session](src/Api/Secrets/Session.php)
- Tenancy
    - [ContactAssignments](src/Api/Tenancy/ContactAssignments.php)
    - [ContactGroups](src/Api/Tenancy/ContactGroups.php)
    - [ContactRoles](src/Api/Tenancy/ContactRoles.php)
    - [Contacts](src/Api/Tenancy/Contacts.php)
    - [TenantGroups](src/Api/Tenancy/TenantGroups.php)
    - [Tenants](src/Api/Tenancy/Tenants.php)
- Users
    - [Config](src/Api/Users/Config.php)
    - [Groups](src/Api/Users/Groups.php)
    - [Permissions](src/Api/Users/Permissions.php)
    - [Users](src/Api/Users/Users.php)
- Virtualization
    - [ClusterGroups](src/Api/Virtualization/ClusterGroups.php)
    - [ClusterTypes](src/Api/Virtualization/ClusterTypes.php)
    - [Clusters](src/Api/Virtualization/Clusters.php)
    - [Interfaces](src/Api/Virtualization/Interfaces.php)
    - [VirtualMachines](src/Api/Virtualization/VirtualMachines.php)

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance53

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Recently: every ~131 days

Total

27

Last Release

921d ago

Major Versions

v0.2.1 → v1.0.02021-03-13

v1.0.6 → v2.0.02022-05-31

v2.3.0 → 3.0.02023-11-09

PHP version history (2 changes)v0.1.0PHP ^8.0|^7.4|^7.3|^7.2

v2.0.0PHP ^8.1|^8.0|^7.4|^7.3|^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/28e9601c351fc8e8923721515bcc7ad84c829f29e138fe5c772dc1cd70db83f3?d=identicon)[mkevenaar](/maintainers/mkevenaar)

---

Top Contributors

[![cycoslave](https://avatars.githubusercontent.com/u/291636?v=4)](https://github.com/cycoslave "cycoslave (50 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (25 commits)")[![mkevenaar](https://avatars.githubusercontent.com/u/834643?v=4)](https://github.com/mkevenaar "mkevenaar (17 commits)")[![hexa2k9](https://avatars.githubusercontent.com/u/118494?v=4)](https://github.com/hexa2k9 "hexa2k9 (5 commits)")[![mmauksch](https://avatars.githubusercontent.com/u/87762329?v=4)](https://github.com/mmauksch "mmauksch (3 commits)")[![kribyl](https://avatars.githubusercontent.com/u/9417861?v=4)](https://github.com/kribyl "kribyl (1 commits)")

---

Tags

netbox

### Embed Badge

![Health badge](/badges/mkevenaar-netbox/health.svg)

```
[![Health](https://phpackages.com/badges/mkevenaar-netbox/health.svg)](https://phpackages.com/packages/mkevenaar-netbox)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
