osd/ip-lookup

Get IP geolocation data from OSD IP Lookup microservice

Installs: 40

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/osd/ip-lookup

1.0.2 2026-01-15 10:34 UTC

This package is auto-updated.

Last update: 2026-01-15 11:50:19 UTC


README

Framework-agnostic IP lookup library for PHP that fetches and normalizes IP metadata into rich domain objects.

This package provides a clean, reusable way to retrieve IP address metadata (ASN, network, geolocation, ownership) and expose it as strongly-typed domain objects.
It is designed to be used in any PHP environment: legacy PHP, CLI scripts, or modern frameworks.

✨ Features

  • Framework-agnostic (no Laravel, no Symfony required)
  • Clean Architecture / DDD-oriented design
  • Strongly typed domain models (no raw arrays leaking out)
  • Pluggable IP providers
  • Explicit dependency injection (no hidden globals)
  • Easy to test and extend

📦 Installation

composer require osd/ip-lookup

Basic Usage

use Osd\IpLookup\Bootstrap\IpLookupFactory;

$service = IpLookupFactory::createDefault();

$lookup = $service->execute('79.150.204.251');

echo $lookup->ip();
echo $lookup->owner()->organization();