Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ip Utils Laravel Package

wikimedia/ip-utils

Wikimedia's PHP library for parsing, validating, and comparing IPv4 and IPv6 addresses, CIDR ranges, and single addresses. Check whether an IP falls within a range, normalize and format addresses, and handle IPv6 with ease—battle-tested in MediaWiki.

View on GitHub
Deep Wiki
Context7

wikimedia/ip-utils is a lightweight PHP library for parsing and manipulating IPv4 and IPv6 addresses, CIDR blocks, and address ranges. It normalizes input safely and gives you consistent primitives for validation and containment checks, making it a dependable foundation for access control, rate limiting, and network-aware logic.

  • Validation & normalization of IPv4/IPv6 addresses and sanitize() cleanup.
  • CIDR parsing via parseCIDR() and range parsing via parseRange().
  • Containment checks with isInRange() and isInCidrRange().
  • Hex conversion helpers (toHex(), fromHex()) for compact storage.
  • Range utilities such as IPv6ToAbsoluteRange() for uniform handling.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource