petk/phpwhois

Whois for PHP
103,366 7
Install
composer require petk/phpwhois
Latest Version:v0.0.2
PHP:>=8.1
License:MIT
Last Updated:Jul 18, 2024
Links: GitHub  ·  Packagist
Maintainer: petk

PhpWhois

Test workflow

About

Warning: This library is in development phase and is not stable for real usage yet.

PhpWhois library is inspired by PHPWhois.org library and others, but aims to be updated for more recent version of PHP and with more domain servers.

Requirements

PhpWhois library requires PHP 8.1.

Documentation

Installation

You can install the PhpWhois library with Composer (recommended way):

composer require petk/phpwhois

Autoloading

You can load PhpWhois library by using Composer's autoloader:

<?php
// index.php
require('vendor/autoload.php');

use PhpWhois\Whois;

$whois = new Whois('yourdomain.tld');
echo $whois->lookup();

License

This library is licensed under the MIT License.