2017 © Pedro Peláez
 

library kelix-net-tools

Network Utility package for Laravel 5

image

macromindonline/kelix-net-tools

Network Utility package for Laravel 5

  • Monday, November 13, 2017
  • by macromindonline
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

KeLixNetTools

Packagist ![Software License][ico-license] ![Total Downloads][ico-downloads], (*1)

PHP Library for Networking Tools (IPv4 and IPv6) Use for Laravel 5, (*2)

Install

Via Composer

``` bash $ composer require kelixlabs/kelix-net-tools:dev-master, (*3)


#### Via edit `composer.json` "require": { "kelixlabs/kelix-net-tools": "dev-master" } Next, update Composer from the Terminal: ``` bash $ composer update

Add to laravel config

Once this operation completes, the final step is to add the service provider. Open config/app.php, and add a new item to the providers array., (*4)

'aliases' => array(
    .....
    kelixlabs\KelixNetTools\kelixNetToolsServiceProvider::class,
);

Now add the alias., (*5)

'aliases' => array(
    ......
    'NetTools' => kelixlabs\KelixNetTools\Facade\NetTools::class,
);

Usage

``` php // Generate network object $network = new NetTools; // The default IP set to 127.0.0.1 and Netmask 255.255.255.0, (*6)

// Set the IP and Netmask $network::setIP('10.3.30.179'); $network::setNetmask('255.255.255.0');, (*7)

// Get the IP and Netmask $ip = $network::getIP(); $netmask = $network::getNetmask();, (*8)

// Get Ping latency from current IP set $latency = $network::ping()->ping();, (*9)

// Get Ping latency from given ip $latency = $network::ping('192.168.1.123')->ping();, (*10)

// Get Network info from current IP set $network = $network::network()->info;, (*11)

// Get Network info from given IP and Netmask $network = $network::network('192.168.1.123','255.255.255.0')->info;, (*12)

// Get individual Network info $CIDR = Network::network()->CIDR; $broadcast = (string)Network::network()->broadcast;, (*13)

// Get MAC address from target's IP $mac = $network::network()->mac;, (*14)

// Bonus Wake On Lan // NetTools::WakeOnLan('Mac Address','Broadcast Address')->WakeUp(); $wakeOnLan = $network::WakeOnLan('74-27-ea-5e-74-59','10.3.30.255')->WakeUp();, (*15)

```, (*16)

Change log

Please see CHANGELOG for more information what has changed recently., (*17)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*18)

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker., (*19)

Credits

License

The MIT License (MIT). Please see License File for more information., (*20)

The Versions

13/11 2017

dev-master

9999999-dev https://github.com/kelixlabs/KelixNetTools

Network Utility package for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel laravel 5 kelixlabs kelixnettools network utility

29/03 2016

v1.1.1

1.1.1.0 https://github.com/kelixlabs/KelixNetTools

Network Utility package for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel laravel 5 kelixlabs kelixnettools network utility

29/03 2016

v1.1.0

1.1.0.0 https://github.com/kelixlabs/KelixNetTools

Network Utility package for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel laravel 5 kelixlabs kelixnettools network utility

29/03 2016

v1.0.2

1.0.2.0 https://github.com/kelixlabs/KelixNetTools

Network Utility package for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel laravel 5 kelixlabs kelixnettools network utility

27/03 2016

v1.0.1

1.0.1.0 https://github.com/kelixlabs/KelixNetTools

Network Utility package for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel laravel 5 kelixlabs kelixnettools network utility

27/03 2016

v1.0.0

1.0.0.0 https://github.com/kelixlabs/KelixNetTools

Network Utility package for Laravel 5

  Sources   Download

MIT

The Requires

 

laravel laravel 5 kelixlabs kelixnettools network utility