PHPackages                             sentrasoft/laravel-netutils - 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. sentrasoft/laravel-netutils

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

sentrasoft/laravel-netutils
===========================

Network Utilities for Laravel

v1.0.0(7y ago)654MITPHPPHP &gt;=5.6.4

Since Apr 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sentrasoft/laravel-netutils)[ Packagist](https://packagist.org/packages/sentrasoft/laravel-netutils)[ Docs](https://github.com/sentrasoft/laravel-netutils)[ RSS](/packages/sentrasoft-laravel-netutils/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Network Utilities for Laravel
=============================

[](#network-utilities-for-laravel)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NU3XK7VXYTYKY)[![Latest Stable Version](https://camo.githubusercontent.com/d2751284a4ce3479cdf315fce6f441fc9b573f6618aed6f4d894aed7681db217/68747470733a2f2f706f7365722e707567782e6f72672f73656e747261736f66742f6c61726176656c2d6361732f762f737461626c65)](https://packagist.org/packages/sentrasoft/laravel-cas)[![Total Downloads](https://camo.githubusercontent.com/6331a30fbc24f5cf22219a9b3faad0f68cac0c0fa8552f49d8a606c0963d8963/68747470733a2f2f706f7365722e707567782e6f72672f73656e747261736f66742f6c61726176656c2d6361732f646f776e6c6f616473)](https://packagist.org/packages/sentrasoft/laravel-cas)[![Monthly Downloads](https://camo.githubusercontent.com/4776500afce1a88474adb4a22aacf5028eb65dc267bf4846d8bcab77829fd1c7/68747470733a2f2f706f7365722e707567782e6f72672f73656e747261736f66742f6c61726176656c2d6361732f642f6d6f6e74686c79)](https://packagist.org/packages/sentrasoft/laravel-cas)[![Latest Unstable Version](https://camo.githubusercontent.com/f5e915927211e331268628708f9fa798d9fe9be68845d81f6585581c46972dd8/68747470733a2f2f706f7365722e707567782e6f72672f73656e747261736f66742f6c61726176656c2d6361732f762f756e737461626c65)](https://packagist.org/packages/sentrasoft/laravel-cas)[![License](https://camo.githubusercontent.com/68caaae503feaf5ba1478581fe92d0c25efadbaf6e4a89acf738c44edea93ea7/68747470733a2f2f706f7365722e707567782e6f72672f73656e747261736f66742f6c61726176656c2d6361732f6c6963656e7365)](https://packagist.org/packages/sentrasoft/laravel-cas)

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

Install
-------

[](#install)

#### Via Composer

[](#via-composer)

```
$ composer require sentrasoft/laravel-netutils
```

#### Via edit `composer.json`

[](#via-edit-composerjson)

```
"require": {
	"sentrasoft/laravel-netutils": "dev-master"
}

```

Next, update Composer from the Terminal:

```
$ composer update
```

#### Add to laravel config

[](#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.

```
'providers' => array(
    .....
    Sentrasoft\Netutils\NetutilsServiceProvider::class,
);
```

Now add the alias.

```
'aliases' => array(
    ......
    'Netutils' => Sentrasoft\Netutils\Facades\Netutils::class,
);
```

Usage
-----

[](#usage)

```
// Generate network object
$network = new Netutils;
// The default IP set to 127.0.0.1 and Netmask 255.255.255.0

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

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

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

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

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

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

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

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

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

Support Us
----------

[](#support-us)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=NU3XK7VXYTYKY)

Help us to keep making awesome stuff. You don't have to be a developer to support our open source work. If you want to receive personal support, or just feel all warm and fuzzy inside from helping open source development, donations are very welcome. Thank you.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2646d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12063138?v=4)[Fahmi Lestian](/maintainers/falestra)[@falestra](https://github.com/falestra)

---

Top Contributors

[![falestra](https://avatars.githubusercontent.com/u/12063138?v=4)](https://github.com/falestra "falestra (4 commits)")

---

Tags

iplanlaravelnetworkpingwake-on-lanlaravelIPnetworkpinglanwake on LAN

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sentrasoft-laravel-netutils/health.svg)

```
[![Health](https://phpackages.com/badges/sentrasoft-laravel-netutils/health.svg)](https://phpackages.com/packages/sentrasoft-laravel-netutils)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[hibit-dev/geodetect

Automatically detect user's geo data based on their IP address

2321.5k](/packages/hibit-dev-geodetect)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)

PHPackages © 2026

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