africc / valid-hostname
A simple (but real) hostname validator
0.2.0
2021-03-13 14:04 UTC
Requires
- php: >=7.3.0
- ext-intl: *
Requires (Dev)
- php-coveralls/php-coveralls: ^2.4
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-11-16 11:56:53 UTC
README
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.