PHPackages                             noflash/snmp-mib-parser - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. noflash/snmp-mib-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

noflash/snmp-mib-parser
=======================

A true SNMP MIB parser based on real Net-SNMP library

11282[2 issues](https://github.com/kiler129/snmp-mib-parser/issues)PHP

Since Jun 29Pushed 5y ago2 watchersCompare

[ Source](https://github.com/kiler129/snmp-mib-parser)[ Packagist](https://packagist.org/packages/noflash/snmp-mib-parser)[ RSS](/packages/noflash-snmp-mib-parser/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

🗄️ (the) SNMP MIB Parser
========================

[](#️-the-snmp-mib-parser)

If you have ever needed to deal with [SNMP](https://en.wikipedia.org/wiki/Simple_Network_Management_Protocol), and especially with [SNMP in PHP](https://www.php.net/manual/en/book.snmp.php) you know how important accurate name to OID mappings are. This library offers that, and way more exposing **the** SNMP library - `Net-SNMP` - to PHP!

If you hated SNMP I hope this library can convince you to stop ;)

Basics
------

[](#basics)

### What's SNMP?

[](#whats-snmp)

SNMP is a networking protocol allowing for information exchange between hosts, think about it like a REST from 1990s. While the protocol is certainly dated it's still used everywhere... and thus available on almost all network-enabled hardware.

Nowadays the SNMP is used mostly to pull metrics (e.g. list of devices connected to a WiFi access point, or free disk space on a server)... but nobody said it cannot be used to control [your coffee pot](https://www.ietf.org/rfc/rfc2325.html)!

### So, what are MIBs?

[](#so-what-are-mibs)

MIB, or *management information base*, is a collection of textual files containing description of the data present on a remote system. Without these files most of the information is just a meaningless set of numbers and strings. Even worse, without MIBs you cannot request `sysUpTime.0` but `1.3.6.1.2.1.1.3.0`... yikes!

MIBs installed on a system calling a remote SNMP host allow for simple querying and validation of the data. They also describe exactly WHAT can be requested from the remote system.

What this library brings?
-------------------------

[](#what-this-library-brings)

Almost every \*nix system comes with [`Net-SNMP`](http://net-snmp.sourceforge.net) library and [tools for it](https://wiki.debian.org/SNMP). For example to see the structure describing installed disks on a Synology NAS you can use a single command to print a nice tree:

```
% snmptranslate -Tp 'SYNOLOGY-DISK-MIB::diskTable'
+--diskTable(1)
   |
   +--diskEntry(1)
      |  Index: diskIndex, diskStatus
      |
      +-- ---- Integer32 diskIndex(1)
      |        Range: 0..2147483647
      +-- -R-- String    diskID(2)
      +-- -R-- String    diskModel(3)
      +-- -R-- String    diskType(4)
      +-- -R-- Integer32 diskStatus(5)
      |        Range: 1..5
      +-- -R-- Integer32 diskTemperature(6)

```

However, there's no programmatic access to all the information presented in that tree (and parsing it is a fragile nightmare).

`Net-SNMP` provides everything needed, and it's **the** library for SNMP interactions &amp; MIB parsing. Unfortunately, it's written in `C` is , it has no PHP binding. Since MIB standard is in active development for close to 35 years, pretty much there are no fully compatible options other than `Net-SNMP`.

### ...but can't we use `Net-SNMP` in PHP?!

[](#but-cant-we-use-net-snmp-in-php)

Yes! Since PHP 7.4 it's possible thanks to [FFI](https://www.php.net/manual/en/book.ffi.php). It's not easy, due to a ton of ancient-C magic present in many places, yet possible.
This library hides the complexity behind a nice object-oriented interface.

[![tree-example](.github/tree-example.png)](.github/tree-example.png)*(example above is included in [`examples`](examples/) directory)*

Requirements
------------

[](#requirements)

- PHP 7.4 (64-bit, since SNMP contains such types)
- Release version of `libnetsnmp`
    - **macOS** ships with it (`/usr/lib/libnetsnmp.25.dylib`), as well as all tools like `snmptranslate`
    - **Linux** will require installation of a package (e.g. Debian/Ubuntu: `snmp`)
    - **Windows** requires installation, Net-SNMP repository [contains precompiled binaries](https://sourceforge.net/projects/net-snmp/files/net-snmp%20binaries/)

License
-------

[](#license)

The library itself is [MIT-licensed](LICENSE). However, the code uses &amp; includes parts of Net-SNMP. The code source tree contains parts of Net-SNMP header files, as well as structures (e.g. constants) translated from C to PHP.
For details about NET-SNMP licensing see [LICENSE-NETSNMP](LICENSE-NETSNMP).

*I'm not a lawyer, but this stuff is free &amp; open-source and you can use it - just play fair and include the licenses ;)*

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa7072dc8b9e794c8e0be058496938c990e9b515f8b5c7c6193b79ca077e50b1?d=identicon)[kiler129](/maintainers/kiler129)

---

Top Contributors

[![kiler129](https://avatars.githubusercontent.com/u/1227834?v=4)](https://github.com/kiler129 "kiler129 (26 commits)")

---

Tags

ffimibmibsnetsnmpparsingphpphp-libraryphp74snmpsnmp-library

### Embed Badge

![Health badge](/badges/noflash-snmp-mib-parser/health.svg)

```
[![Health](https://phpackages.com/badges/noflash-snmp-mib-parser/health.svg)](https://phpackages.com/packages/noflash-snmp-mib-parser)
```

###  Alternatives

[flagstudio/nova-actions-left

Laravel Nova actions on the left

2258.2k](/packages/flagstudio-nova-actions-left)[humanmade/popup

An exit intent popup block that shows when someone may be about to leave the site

144.8k](/packages/humanmade-popup)

PHPackages © 2026

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