Download the PHP package rjp2525/laravel-asn without Composer
On this page you can find all versions of the php package rjp2525/laravel-asn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rjp2525/laravel-asn
More information about rjp2525/laravel-asn
Files in rjp2525/laravel-asn
Package laravel-asn
Short Description IP ASN utility package for laravel
License MIT
Homepage https://github.com/rjp2525/laravel-asn
Informations about the package laravel-asn
Laravel ASN
A full-featured Laravel package for working with Autonomous System Numbers (ASNs) and IP address ranges. Look up which network owns an IP, check if addresses belong to specific ASNs, resolve domains to their ASN, and query your database with driver-optimized IP range filters.
Installation
Publish the configuration file:
Usage
ASN Lookups
Look up which ASN owns an IP address:
Get all prefixes announced by an ASN:
Check if an IP belongs to an ASN:
Check an IP against multiple ASNs:
Check if two IPs are on the same network:
IP Matching
For checking many IPs against the same set of ranges, build a compiled IpMatcher for O(log n) binary search:
Build a custom matcher with CIDR prefixes, single IPs, and explicit ranges:
Batch check with detailed results:
Domain Resolution
Resolve domains and check their ASN:
Check a domain against a compiled matcher:
Validation Rules
All rules support PHP Attributes for use on DTOs:
As PHP Attributes on a DTO:
Eloquent Query Macros
Query your database with driver-optimized IP range filters. Works with PostgreSQL (native inet), MySQL/MariaDB (INET_ATON), and SQLite (numeric extraction):
All macros work on both Eloquent Builder and base Query Builder:
Artisan Commands
Configuration
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Reno Philibert
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-asn with dependencies
illuminate/cache Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
illuminate/validation Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.16