africc/valid-hostname

A simple (but real) hostname validator

Maintainers

Package info

github.com/AfriCC/php-valid-hostname

pkg:composer/africc/valid-hostname

Statistics

Installs: 198

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 2

0.2.0 2021-03-13 14:04 UTC

README

Build Status Scrutinizer Code Quality Coverage Status Latest Stable Version Packagist Latest Unstable Version License

A simple (but real) hostname validator in PHP.

Install

$ composer require africc/valid-hostname

Usage

<?php

require 'vendor/autoload.php';

if (AfriCC\Valid\hostname('google.com')) {
    echo 'valid!';
}

License

Licensed under the MIT License. See the LICENSE file for details.

Author Information

AfriCC