Download the PHP package monovm/whois-php without Composer

On this page you can find all versions of the php package monovm/whois-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package whois-php

:zap: Simple and Fast Domain Lookup in PHP :zap:

This PHP package enables developers to retrieve domain registration information and check domain availability via socket protocol. It's a useful tool for web developers and domain name registrars.

based on WHMCS Whois class.

:scroll: Installation

You can install the package via composer:

:arrow_forward: Checker class

You can use this class to check one or multiple domains availability.

:mortar_board: Usage/Examples

An associative array with domains as keys and status as values. Current statuses: available, unavailable, premium

:fire: popularTLDs Configuration

When TLD is not specified in the domain string (eg:monovm instead of monovm.com), Checker class will automatically lookup a list of popular TLDs for the entered name.

You can customize this list by passing an options array as second parameter of whois method.

:arrow_forward: WhoisHandler class

:mortar_board: Usage/Examples

Available methods:

After initiating the handler method you will have access to the following methods:

Method Description
isAvailable Returns true if the domain is available for registration
isValid Returns true if the domain can be looked up
getWhoisMessage Returns the whois server message as a string including availability, validation or the domain whois information
getTld Returns the top level domain of the entered domain as a string
getSld Returns the second level domain of the entered domain as a string

:green_circle: isAvailable() method takes a single parameter, the domain name, as a string value. If the domain is available for registration, the method returns a boolean true value. If the domain is already registered, the method returns a boolean false value.

:green_circle: isValid() method checks whether the entered domain name is valid and can be looked up or not.

:green_circle: The getWhoisMessage() method is used to retrieve the WHOIS information of a domain. This method returns a string that includes the WHOIS server message, which may contain information about the availability and validation of the domain, as well as its WHOIS information.

:green_circle: getTld() method is used to extract the top level domain (TLD) of a given domain. For example, if the domain name passed to the handler is "monovm.com", the method will return "com" as the TLD. Similarly, if the domain name is "monovm.co.uk", the method will return "co.uk" as the TLD.

:green_circle: getSld() method returns the second level domain of the entered domain as a string. The second level domain is the part of the domain name that comes before the top level domain, and it is typically the main part of the domain that identifies the website or organization. For example, in the domain name "monovm.com", the second level domain is "monovm".

:globe_with_meridians: Whois Server List

Almost all TLDs are supported.

:balance_scale: License

MIT

:computer: Support

For support, email [email protected].

MonoVM.com

Logo


All versions of whois-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package monovm/whois-php contains the following files

Loading the files please wait ....