timgws / domainlist
A simple class for lists of domains
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/timgws/domainlist
Requires (Dev)
- phpunit/phpunit: ^4.7
This package is auto-updated.
Last update: 2025-10-08 13:26:59 UTC
README
A quick class for managing lists of domains. Nothing special.
Example of adding domains
$list = new DomainList('ing'); $list->add([ $list->c('the awesome € shop'), $list->c('hex-follows-0xaf--0xfacebeef'), $list->c('--lol-0xfacebeef') ]); $domains = $list->get(); //--- $domains = [ 'hex-follows-0xaf-0xfacebeef.ing', 'hexfollows0xaf0xfacebeef.ing', 'the-awesome-eur-shop.ing', 'theawesomeeurshop.ing' ];
This class should validate that domains match RFC 1035 valid domains.