PHPackages                             marbocub/network-equipment - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. marbocub/network-equipment

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

marbocub/network-equipment
==========================

Telnet client with response parser for network equipment

v1.0.4(5y ago)294MITPHPPHP &gt;= 7.2.0

Since Mar 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/marbocub/network-equipment)[ Packagist](https://packagist.org/packages/marbocub/network-equipment)[ RSS](/packages/marbocub-network-equipment/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

marbocub/network-equipment
==========================

[](#marbocubnetwork-equipment)

A telnet client with response parser for network equipment written in PHP.

This library provide two features.

- Telnet client, that extends [graze/telnet-client](https://github.com/graze/telnet-client)to provide waitForPrompt(), login(), enable(), configure() and several presets for network equipment
- The parser, that converts a supported Cisco IOS command response to the array

The parser is implemented as the integrated with telnet client and as the standalone library. If you want to use your own telnet/SSH client library, you can use the parser as standalone library.

Supported network equipment
---------------------------

[](#supported-network-equipment)

Supported network equipment by the parser and the telnet client are:

- Cisco IOS
- Cisco IOS-XE

Telnet client may work with targeted are:

- Juniper JUNOS (with [custom prompt setting](#custom-prompt-setting))
- Linux and other UNIX like platforms (with [custom prompt setting](#custom-prompt-setting))
- Alaxala network switch
- Extreme XOS, HP Procurve, DLink and other intelligent network switch

Supported Cisco IOS commands by the parser
------------------------------------------

[](#supported-cisco-ios-commands-by-the-parser)

- show interface status
- show interface counters
- show mac address-table
- show lldp neighbors
- show ip interface brief
- show arp

Getting Started
---------------

[](#getting-started)

### Installing

[](#installing)

Via Composer

```
composer require marbocub/network-equipment
```

### Quick start example for telnet client

[](#quick-start-example-for-telnet-client)

The following example login to a Cisco IOS switch to get and display the interface status:

```
