PHPackages                             timgws/domainlist - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. timgws/domainlist

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

timgws/domainlist
=================

A simple class for lists of domains

05PHP

Since Jun 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/timgws/domainlist)[ Packagist](https://packagist.org/packages/timgws/domainlist)[ RSS](/packages/timgws-domainlist/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DomainList
==========

[](#domainlist)

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

[![Test Coverage](https://camo.githubusercontent.com/cbb0155faaea34ed22caf84c69e551cd9a211b6fcba18a9dc38ec08572396ab8/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f74696d6777732f646f6d61696e6c6973742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/timgws/domainlist/coverage)[![Code Climate](https://camo.githubusercontent.com/35decfbdfd3d92bb2b4e0eac90aff4321a4b40db7031fa383f74dc8c34dad860/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f74696d6777732f646f6d61696e6c6973742f6261646765732f6770612e737667)](https://codeclimate.com/github/timgws/domainlist)

Example of adding domains
-------------------------

[](#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](https://tools.ietf.org/html/rfc1035) valid domains.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e950378ef4ed66fb3df70c8b59a7bf9ba5df39c8b6be3f85a4ae484af4992d77?d=identicon)[timgws](/maintainers/timgws)

---

Top Contributors

[![timgws](https://avatars.githubusercontent.com/u/1050232?v=4)](https://github.com/timgws "timgws (11 commits)")

### Embed Badge

![Health badge](/badges/timgws-domainlist/health.svg)

```
[![Health](https://phpackages.com/badges/timgws-domainlist/health.svg)](https://phpackages.com/packages/timgws-domainlist)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
