$ show maxmind/web-service-common-php
This is a PHP Composer library containing shared code used by MaxMind's various web service client APIs, such as GeoIP2 and minFraud. It is not a standalone application; it is an internal dependency that provides a base HTTP client, request/response handling, authentication, and typed exception mapping for MaxMind web services. The README explicitly notes that the code is for internal use and that semantic versioning does not apply.
The LLM identified 2 files worth highlighting for reuse:
Implements the Request interface using cURL. Handles SSL CA verification via composer/ca-bundle, proxy and timeout options, and splits response headers from the body. Because it sits behind a small interface, it is a clean, extractable HTTP adapter for any PHP project needing a cURL-backed client.
Creates Request instances from a URL and options array, decoupling the MaxMind client from the concrete HTTP transport. This makes the HTTP layer swappable and testable with fake requests, and demonstrates a minimal, reusable factory pattern.