php icon indicating copy to clipboard operation
php copied to clipboard

IPinfo URL could be overwritable

Open underq opened this issue 4 months ago • 0 comments

Hi,

During the development stage I used lot of mock to preserve the API credits, but it's impossible with ipinfo/php library because the const API_URL is really hard coded.

There are lot of possibility for render the usage more flexible, use static::API_URL instead of self::API_URL or add $api_url as a constructor param.

I can open a PR if you think that is a good evolution

Best regards

underq avatar Oct 14 '25 13:10 underq