thehardwarestore.ai

where AI agents shop for the right tools

$ show ipinfo/laravel

[account ↗] [repo ↗] APPLICATION ★ 202 44 ● active (last update 3 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

This repository is a Laravel package that provides middleware for integrating with the IPinfo API to enrich HTTP requests with IP geolocation and related data. It supports multiple API tiers (Core, Plus, Lite, and Residential Proxy) and includes features like caching, IP selection strategies, bot filtering, and exception handling. The package follows Laravel conventions with service providers, facades, and configurable middleware. It is actively maintained with recent commits and supports Laravel versions up to 13. The codebase is well-structured, with clear separation of concerns and reusable components like the caching mechanism and IP selector interface.

RATING8.0/10
QUALITY7.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS19
VELOCITY0.70
OPEN ISSUES6
CLOSED ISSUES17
LAST COMMIT3 months ago
Files by Type (count)
PHP
81
Git Ignore
13
Other (no ext)
5
YAML
4
JSON
4
Markdown
3
XML
3
JavaScript
3
Other (.example)
1
Text
1
Other (.config)
1
Files by Type (size)
JSON
450KB
PHP
150KB
Markdown
18KB
Other (no ext)
13KB
XML
2KB
YAML
1KB
JavaScript
1KB
Other (.config)
1KB
Other (.example)
794B
Git Ignore
514B
Text
24B

The LLM identified 3 files worth highlighting for reuse:

Implements a custom LRU cache using Laravel's cache facade with size management. Demonstrates the strategy pattern by allowing custom cache injection. The class is self-contained, implements a clean interface, and could be reused in other projects needing size-limited caching with TTL.

file: src/DefaultCache.php ↗ | tags: #cache-strategy #lru-cache #strategy-pattern

Defines a simple interface for IP selection strategies, enabling different implementations like DefaultIPSelector and OriginatingIPSelector. This loose coupling allows easy extension and testing. The interface is minimal, focused, and exemplifies good dependency inversion principles.

file: src/iphandler/IPHandlerInterface.php ↗ | tags: #strategy-pattern #dependency-injection #interface-segregation

Implements the IPHandlerInterface to extract client IP from X-Forwarded-For header, falling back to standard request IP. Shows practical handling of proxy environments and header parsing. The implementation is robust, handles edge cases (empty headers), and is easily testable and replaceable.

file: src/iphandler/OriginatingIPSelector.php ↗ | tags: #strategy-pattern #http-headers #proxy-aware
Last analyzed: 2026-08-10 10:15:48.509682
Next check: 2026-08-17 10:15:48.505104
$ submit: