https://github.com/oops-org-php/whois
Whois gateway PHP class
https://github.com/oops-org-php/whois
Last synced: 4 months ago
JSON representation
Whois gateway PHP class
- Host: GitHub
- URL: https://github.com/oops-org-php/whois
- Owner: OOPS-ORG-PHP
- License: bsd-2-clause
- Created: 2016-05-22T15:08:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-16T06:03:34.000Z (over 7 years ago)
- Last Synced: 2025-01-08T10:38:58.834Z (6 months ago)
- Language: PHP
- Homepage: http://pear.oops.org
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WHOIS pear package
[](https://raw.githubusercontent.com/OOPS-ORG-PHP/WHOIS/master/LICENSE)### Description
Whois gateway PHP class
1. support IP address lookup
2. print result with auto recursion### License
BSD 2 clause
### Reference
http://pear.oops.org/docs/WHOIS/WHOIS.html
reference is written by Korean. If you can't read korean, use [google translator](https://translate.google.com/translate?sl=ko&tl=en&js=y&prev=_t&hl=ko&ie=UTF-8&u=http%3A%2F%2Fpear.oops.org%2Fdocs%2FWHOIS%2FWHOIS.html&edit-text=).
### Installation
```shell
[root@host ~] pear channel-discover pear.oops.org
Adding Channel "pear.oops.org" succeeded
Discovery of channel "pear.oops.org" succeeded
[root@host ~] pear install oops/WHOIS
```### Dependency
* PHP >= 5.3.0
* Pear packages
* [myException](https://github.com/OOPS-ORG-PHP/myException) >= 1.0.1### Sample codes
```php
lookup ($argv[1]);print_r ($whois);
} catch ( myException $e ) {
echo $e->Message () . "\n";
print_r ($e->TraceAsArray ());
}
?>
```