I don't think so... But, you can work with the "whois" command in the linux shell/terminal and look in the source of that program (not sure if it's opensource) hench, a php script that contacts the whois program should be very easy. From there it's a piece of cake to store it in a db.
=> CLIENT CONNECTS TO SERVER PORT 43
S: This domain is registererd\r\n
=> SERVER CLOSES CONNECTION
PM me if you need help.
Do you know where I can get a script to set up my own whois? well actually what i need is a whois for subdomains, like check if they "Resolve" and if they don't, the whois will return the subdomain as "available" for registration.
Next use xinetd (or another inetd) to listen on port 43 and call the script.
# -- /etc/xinetd.d/whois --
# description: An xinetd service which outputs whois info.
disable = no
socket_type = stream
protocol = tcp
user = root
server = /usr/local/bin/mywhois
wait = no