PHPackages                             dcortez/snmp - 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. dcortez/snmp

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

dcortez/snmp
============

PHP Class for net-snmp commands

1.2.0(8y ago)131MITPHP

Since Nov 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dcortez/snmp)[ Packagist](https://packagist.org/packages/dcortez/snmp)[ RSS](/packages/dcortez-snmp/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (5)Used By (0)

snmp
====

[](#snmp)

PHP Class for net-snmp commands

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

[](#requirements)

Requires: net-snmp-utils

For RedHat/CentOS 6, 7

```
[root@centos ~]# yum install net-snmp-utils
```

For Debian/Ubuntu

```
[root@debian ~]# apt-get install snmp
```

Installation with Composer
--------------------------

[](#installation-with-composer)

```
$ composer require dcortez/snmp
```

Usage
-----

[](#usage)

Example php file.

```
// test-snmp.php
require 'vendor/autoload.php';

use dcortez\Snmp;

$snmp = new Snmp('127.0.0.1', 'public', '2c', '5'); // , , ,
print_r($snmp->get('.1.3.6.1.2.1.1.1.0'));
```

Test run php file.

```
$ php test-snmp.php
Array
(
    [.1.3.6.1.2.1.1.1.0] => Linux test.example.com
)
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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.

###  Release Activity

Cadence

Every ~297 days

Total

4

Last Release

3040d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/332630?v=4)[DC](/maintainers/dcortez)[@dcortez](https://github.com/dcortez)

---

Top Contributors

[![dcortez](https://avatars.githubusercontent.com/u/332630?v=4)](https://github.com/dcortez "dcortez (5 commits)")[![jorgeslima](https://avatars.githubusercontent.com/u/8495352?v=4)](https://github.com/jorgeslima "jorgeslima (3 commits)")

### Embed Badge

![Health badge](/badges/dcortez-snmp/health.svg)

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

###  Alternatives

[scheb/tombstone

Dead code detection with tombstones for PHP

286644.1k2](/packages/scheb-tombstone)[lkrms/pretty-php

The opinionated PHP code formatter

150104.1k1](/packages/lkrms-pretty-php)[zwernemann/module-withdrawal

Magento 2 EU Withdrawal Button Module - Adds a withdrawal/revocation button for orders in compliance with EU Directive (EU) 2023/2673

2610.9k2](/packages/zwernemann-module-withdrawal)

PHPackages © 2026

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