PHPackages                             herzcthu/laravel-nmap - 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. herzcthu/laravel-nmap

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

herzcthu/laravel-nmap
=====================

nmap wrapper for laravel 5.2

v0.1.0(10y ago)102934[2 issues](https://github.com/herzcthu/LaravelNmap/issues)MITPHPPHP &gt;=5.3.0CI failing

Since May 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/herzcthu/LaravelNmap)[ Packagist](https://packagist.org/packages/herzcthu/laravel-nmap)[ RSS](/packages/herzcthu-laravel-nmap/feed)WikiDiscussions master Synced today

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

LaravelNmap
===========

[](#laravelnmap)

Nmap wrapper for laravel.

Not all nmap arguments supported. All arguments method can use method chaining. But try to use correct combination according to nmap usage.

**See below for supported arguments.**

***--help***

```
$help = new LaravelNmap();
$help->NmapHelp();
```

***-v*** (Verbose)

```
$nmap = new LaravelNmap();
$nmap->verbose();
```

***-O*** (Detect OS)

```
$nmap->detectOS();
```

***-sV*** (Detect Services)

```
$nmap->getServices();
```

***-sn*** (Disable port scan - same with -sP) This method cannot be use with other scan type. See nmap help for more information.

```
$nmap->disablePortScan();
```

***-p \[ports\]*** (select port scan - see more for nmap help)

```
$nmap->scanPorts('22,80,443');
```

\*\*\* target \*\*\* (This method is mandatory for all scan type)

```
$nmap->setTarget('192.168.43.0/24');
```

### Output

[](#output)

There are 3 types of output.

- Nmap raw output for stdout.
- SimpleXML object
- Array

```
$nmap->getRawOutput();
$nmap->getXmlObject();
$nmap->getArray();
```

### Security

[](#security)

This package allow to use root permission if php user is in sudo group. Highly discourage if you don't know security risks regarding nmap.

Below code will enable sudo permission -

```
$nmap = new LaravelNmap(true);
```

### Other options

[](#other-options)

Other options supported are setTimeout($seconds) and setEnv($name, $value).

If you want to increase default process timeout, use setTimeout().

Example:

```
$nmap->setTimeout('300');
```

If you want to set environment variable when running process, use setEnv($name, $value);

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

3692d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1c0116244be7efbb2e1c3bc9bf442ccf0560ac2c48088ef46f29cda4a052a65?d=identicon)[herzcthu](/maintainers/herzcthu)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/herzcthu-laravel-nmap/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[illuminate/process

The Illuminate Process package.

44869.2k97](/packages/illuminate-process)

PHPackages © 2026

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