Skip to content

AfriCC/php-valid-hostname

Repository files navigation

africc/valid-hostname

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