africc/valid-hostname

A simple (but real) hostname validator

Installs: 171

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 0

Forks: 1

Open Issues: 2

pkg:composer/africc/valid-hostname

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