https://github.com/jdecool/whois
Toy project - whois client
https://github.com/jdecool/whois
Last synced: 2 months ago
JSON representation
Toy project - whois client
- Host: GitHub
- URL: https://github.com/jdecool/whois
- Owner: jdecool
- Created: 2019-04-18T20:08:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-17T17:09:00.000Z (about 3 years ago)
- Last Synced: 2026-03-29T17:26:35.571Z (3 months ago)
- Language: PHP
- Size: 124 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
whois
=====
This is a toy project that implement a [whois](https://en.wikipedia.org/wiki/WHOIS) client in PHP.
## Usage
First you need to install dependencies with Composer:
```bash
$ composer install
```
Then you can use the CLI command:
```bash
$ php bin/whois [domain]
```
Or start a web server:
```bash
$ php bin/server
```
The web server can be configure with environment variables:
* `IP`: the IP address to listen
* `PORT`: the port to use
Example: `IP=0.0.0.0 PORT=8000 php bin/server`
## About
### PHP 7.4
The source code use typed properties which is available since PHP 7.4.
I use Docker to test it. There is a [Dockerfile](Dockerfile) in a project which use [phpdaily](https://phpdaily.github.io) to work with PHP development branches.
### HTTP web server
The web server is provided by [ReactPHP](https://reactphp.org) HTTP server component.