lamoni/hostnameseek

A PHP class for dealing with hostnames

Installs: 53

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/lamoni/hostnameseek

v1.0.0 2015-02-26 09:08 UTC

This package is not auto-updated.

Last update: 2025-09-27 21:31:19 UTC


README

A PHP class for dealing with hostnames

Dependencies

  • PHP >= 5.4

Examples

Get all hostnames from /etc/hosts

$seek = new HostnameSeek('/etc/hosts');

print_r($seek->GetHosts());

Get hostnames matching certain items

$seek = new HostnameSeek('/etc/hosts', ['labdevice', 'labcomputer']);

print_r($seek->GetHosts());