Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vslinko/find-your-domain

Find best domains in your TLDs. Async on PHP! [ARCHIVE]
https://github.com/vslinko/find-your-domain

Last synced: 22 days ago
JSON representation

Find best domains in your TLDs. Async on PHP! [ARCHIVE]

Awesome Lists containing this project

README

        

# Find Your Domain

Find best domains in your TLDs

## Installation

Add requirement in your composer.json:

```json
{
"require": {
"rithis/find-your-domain": "@dev"
}
}
```

After that run `composer update rithis/find-your-domain`.

## Usage

### Library

```php
create($input->getOption('dns-server'), $loop);

$wisdom = new Wisdom(new WhoisClient($resolver, function ($ip) use ($loop) {
return new SocketConnection(stream_socket_client("tcp://$ip:43"), $loop);
}));

$container = new PronounceableWord_DependencyInjectionContainer();
$generator = $container->getGenerator();

$finder = $this->getFinder($wisdom, $generator, $loop);
$finder->find($callback, $length, $tlds);

$loop->run();
```

Example output: `absof.com absof.net absof.io`

### Console

After installation you can use our console. Just run:

```./vendor/bin/find-your-domain one -l5 -tcom -tnet -tio```

Or you can run never-ending search, and find best domains from stream:

```./vendor/bin/find-your-domain many -l5 -tcom -tnet -tio```