PHPackages                             peterkahl/ip2asn - 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. peterkahl/ip2asn

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

peterkahl/ip2asn
================

Maps IP address to ASN. ASN to prefix. Both IPv4 and IPv6.

v3.1(5y ago)74.0kApache-2.0PHP &gt;=5.3.0

Since Jun 9Compare

[ Source](https://github.com/peterkahl/ip2asn)[ Packagist](https://packagist.org/packages/peterkahl/ip2asn)[ Docs](https://github.com/peterkahl/ip2asn)[ RSS](/packages/peterkahl-ip2asn/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependenciesVersions (22)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/peterkahl/ip2asn).

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Every ~62 days

Recently: every ~5 days

Total

21

Last Release

2005d ago

Major Versions

v0.9 → v1.02020-09-20

v1.4 → v2.02020-09-22

v2.5 → v3.02020-11-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/6359fb42d32daab717dff498bcf933d203bc148e6f7a1ce696eb3cc0314f4dd3?d=identicon)[peterkahl](/maintainers/peterkahl)

---

Tags

IPasnip-to-asnbgpasn-to-prefix

### Embed Badge

![Health badge](/badges/peterkahl-ip2asn/health.svg)

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

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[s1lentium/iptools

PHP Library for manipulating network addresses (IPv4 and IPv6)

2446.2M24](/packages/s1lentium-iptools)[zhuzhichao/ip-location-zh

get the ip's location info with Chinese

617212.5k11](/packages/zhuzhichao-ip-location-zh)[markrogoyski/ipv4-subnet-calculator

Network calculator for subnet mask and other classless (CIDR) network information.

177813.7k6](/packages/markrogoyski-ipv4-subnet-calculator)[rlanvin/php-ip

IPv4/IPv6 manipulation library for PHP

180738.8k11](/packages/rlanvin-php-ip)[longman/ip-tools

PHP IP Tools for manipulation with IPv4 and IPv6

147245.6k6](/packages/longman-ip-tools)

PHPackages © 2026

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