Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.4 KB

File metadata and controls

37 lines (25 loc) · 1.4 KB

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