Skip to content

timgws/domainlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DomainList

A quick class for managing lists of domains. Nothing special.

Test Coverage Code Climate

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.

About

Manage lists of domains, ensuring only valid ones sneak through.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages