lamoni/hostnameseek

A PHP class for dealing with hostnames

Maintainers

Package info

github.com/lamoni/hostnameseek

pkg:composer/lamoni/hostnameseek

Statistics

Installs: 53

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

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

This package is not auto-updated.

Last update: 2026-03-14 23:48:56 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());