mallardduck / php-whois-client

A very basic Whois client for PHP. The library limits function to be a low-level client that handles only request and raw output.
GNU General Public License v3.0
16 stars 3 forks source link

Replace hoa/socket with something else #17

Closed mallardduck closed 4 years ago

mallardduck commented 4 years ago

Nothing wrong with hoa/socket it served a great purpose of getting the package this far. However if I can replace it with something more simple then that would be better.

The hoa/socket library depends on a number of hoa libraries that I don't need or use. So removing their usage could help improve maintainability over the long term.

mallardduck commented 4 years ago

Option 1: Write a whois:// streamWrapper as a separate dependency

Per the title, this would involve creating a separate package that simply creates a PHP streamWrapper to handle whois look ups. It may provide some helpers to register said wrapper depending on context of use.

Resources:

mallardduck commented 4 years ago

Option 2: Use an existing socket/stream client library

clue/php-socket-raw

mallardduck commented 4 years ago

Option 3: Write a thin client in this library.

A wild challenger appeared and won. This is implemented in master a41c33314cc69449b354b05f825db9582e251728