Download the PHP package oktey/whoisparser without Composer
On this page you can find all versions of the php package oktey/whoisparser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oktey/whoisparser
More information about oktey/whoisparser
Files in oktey/whoisparser
Package whoisparser
Short Description Lookup domain names, IP addresses and AS numbers by WHOIS.
License Apache-2.0
Homepage https://github.com/3name/WhoisParser/
Informations about the package whoisparser
Novutec WHOIS Parser
Lookup domain names, IP addresses and AS numbers by WHOIS.
Automatically follows the WHOIS registry referral chains until it finds the correct WHOIS for the most complete WHOIS data. Exceptionally robust WHOIS parser that parses a variety of free form WHOIS data into well-structured data that your application may read. Also returns an indication of whether a domain is available.
Copyright (c) 2007 - 2013 Novutec Inc. (http://www.novutec.com) Licensed under the Apache License, Version 2.0 (the "License").
Installation
Installing from source: git clone git://github.com/novutec/WhoisParser.git
or download the latest release
See Novutec Domain Parser (http://github.com/novutec/DomainParser) or download the latest release and install it as well.
Move the source code to your preferred project folder.
Usage
-
Include Parser.php
-
Create Parser() object
-
Call lookup() method
-
Access WHOIS record, the object oriented way.
-
You may choose 5 different return types. the types are array, object, json, serialize and xml. By default it is object. If you want to change that call the format method before calling the parse method or provide to the constructer.
-
You may set your own date format if you like. Please check http://php.net/strftime for further details
- If you have special WHOIS server or login credentials for a registrar WHOIS you may use the method setSpecialWhois(). Please note that if you have a special WHOIS and the WHOIS output looks different you need your own template.
ToDos
- Caching of data for better performance and to reduce requests
- Change HTTP Adapter to use GET/POST
- Change Socket Adapter to be able to use Socks to split requests.
Known bugs to be fixed in further versions
- [Template] gTLD cps-datensysteme - need caching for testing, because after 5 requests you get blocked
- [Template] .BJ - recursive lookup for handles
Tested with following RIRs and TLDs
RIRs
ccTLDs (http://data.iana.org/TLD/tlds-alpha-by-domain.txt)
Special TLDs
gTLDs and thin registries sort by IANA ID (http://www.iana.org/assignments/registrar-ids/registrar-ids.xml)
3rd Party Libraries
We are using our own Domain Parser:
- Novutec: http://github.com/novutec/DomainParser (Version 2.0.0 and above)
ChangeLog
See ChangeLog at https://github.com/novutec/WhoisParser/blob/master/CHANGELOG.md
Issues
Please report any issues via https://github.com/novutec/WhoisParser/issues
LICENSE and COPYRIGHT
Copyright (c) 2007 - 2013 Novutec Inc. (http://www.novutec.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.