A PHP SNMP library that simplifies network device interaction by abstracting away complex MIBs and OIDs.
OSS_SNMP is a PHP library that provides a simplified, developer-friendly interface for working with SNMP (Simple Network Management Protocol) on network devices. It abstracts away the complexity of MIBs and OIDs, allowing network engineers and developers to retrieve and manage network data through intuitive PHP methods instead of dealing with low-level SNMP details.
Network engineers, DevOps professionals, and PHP developers who need to automate network monitoring, configuration, or topology discovery tasks without deep SNMP expertise.
Developers choose OSS_SNMP because it dramatically reduces the learning curve and boilerplate code required for SNMP interactions, with pre-built support for common vendor MIBs and an extensible architecture that encourages community contributions.
A PHP SNMP library for people who hate SNMP, MIBs and OIDs!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides simple PHP methods like `vlanNames()` and `contact()` that abstract away complex OIDs, as shown in the example usage for retrieving VLAN names without manual translation.
Includes pre-built MIBs for Cisco and Foundry, enabling common tasks such as VLAN management and topology discovery via protocols like CDP, reducing initial setup time.
MIBs are defined in plain PHP files in the `MIBS/` directory, with a complete example in `Iface.php`, making it straightforward to add new functionality and contribute back.
Offers Layer 2 topology discovery capabilities, used in companion projects like NOCtools for network mapping, without needing separate tools for CDP-based analysis.
The library is currently read-only, as admitted in the README, so it cannot set SNMP values for configuration tasks, limiting its use in automation scenarios.
Only a handful of MIBs are pre-defined, primarily for Cisco and Foundry, which may require custom development for unsupported devices or advanced SNMP features.
Requires PHP 5.4 or higher, which might be restrictive for legacy systems or newer PHP environments, and dependencies like php5-snmp add setup complexity.