PHPackages                             datasift/netifaces - 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. datasift/netifaces

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

datasift/netifaces
==================

0.1.0(12y ago)128.8k↓92.3%1PHP

Since Aug 9Pushed 12y agoCompare

[ Source](https://github.com/datasift/netifaces)[ Packagist](https://packagist.org/packages/datasift/netifaces)[ RSS](/packages/datasift-netifaces/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (1)

Netifaces
=========

[](#netifaces)

### Installation

[](#installation)

Add the following to your composer.json file

```
{
    "requires": {
        "datasift/netifaces": "*"
    }
}
```

### Usage

[](#usage)

We currently support two methods, `listAdapters()` and `getIpAddress()`.

```
require __DIR__.'/../vendor/autoload.php';

// To get information about our network adapters, we need to know about two things
// 1. The OS that we're on
$os = Datasift\Os::getOs();
// 2. We need a parser for the ifconfig output
$parser = Datasift\IfconfigParser::fromDistributions($os->getPossibleClassNames());

// Next, we create a new netifaces instance, passing in our OS and Parser
$netifaces = new Datasift\netifaces($os, $parser);

// Then we can list the available adapters
var_dump($netifaces->listAdapters());

// Or get the IP address if a specific adapter
var_dump($netifaces->getIpAddress("eth0"));
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

4711d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dc3934d5c3ce55e18dca95d52b564fb2a34986770af3c532dba6c248ef58f3a?d=identicon)[stuartherbert](/maintainers/stuartherbert)

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/datasift-netifaces/health.svg)

```
[![Health](https://phpackages.com/badges/datasift-netifaces/health.svg)](https://phpackages.com/packages/datasift-netifaces)
```

PHPackages © 2026

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