africc/valid-hostname

A simple (but real) hostname validator

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