2017 © Pedro Peláez
 

laravel snmp-wrapper

Laravel SNMP wrapper for Nelisys/Snmp class

image

onurkose/snmp-wrapper

Laravel SNMP wrapper for Nelisys/Snmp class

  • Tuesday, December 26, 2017
  • by onurkose
  • Repository
  • 1 Watchers
  • 1 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 20 % Grown

The README.md

SNMPWrapper

Laravel SNMP package wrapper for Nelisys/Snmp class, (*1)

Requirements

Requires: Nelisys/Snmp and net-snmp-utils, (*2)

Installation

Install via Composer., (*3)

$ composer require onurkose/snmp-wrapper

Add to config/app.php., (*4)

<?php

return [

    // ...

    'providers' => [
        // ...
        OnurKose\SNMPWrapper\SNMPWrapperServiceProvider::class,
    ],

    // ...

    'aliases' => [
        // ...
        'SNMPWrapper' => OnurKose\SNMPWrapper\Facades\SNMPWrapper::class,
    ],
];

Usage

<?php

namespace App\Http\Controllers;

use OnurKose\SNMPWrapper;

use App\Http\Controllers\Controller;

class SNMPController extends Controller
{

    public function get()
    {
        $snmp = new SNMPWrapper();

        $snmp::setHost('192.168.0.1', 'public');

        dd($snmp::get('.1.3.6.1.2.1.1.1.0'));
    }
}

Result of the test method get(), (*5)

Array
(
    [.1.3.6.1.2.1.1.1.0] => LigoDLB 5-20n v7.57.51319
)

License

Laravel SNMPWrapper is open-sourced software licensed under the MIT license., (*6)

The Versions

26/12 2017

dev-master

9999999-dev

Laravel SNMP wrapper for Nelisys/Snmp class

  Sources   Download

MIT

The Requires

 

by Onur Kose

26/12 2017

1.1

1.1.0.0

Laravel SNMP wrapper for Nelisys/Snmp class

  Sources   Download

MIT

The Requires

 

by Onur Kose

26/12 2017

1.0.1

1.0.1.0

Laravel SNMP wrapper for Nelisys/Snmp class

  Sources   Download

MIT

The Requires

 

by Onur Kose

26/12 2017

1.0.0

1.0.0.0

Laravel SNMP wrapper for Nelisys/Snmp class

  Sources   Download

MIT

The Requires

 

by Onur Kose