PHPackages                             nkkollaw/reserved-subdomains - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. nkkollaw/reserved-subdomains

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

nkkollaw/reserved-subdomains
============================

Subdomain validator for multitenant apps

0.3.1(8y ago)793.0k12MITPHP

Since Mar 13Pushed 6y ago3 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Subdomains
==========

[](#subdomains)

List of subdomains that could be candidates for reservation in multitenant app/ subdomain validator for multitenant apps

YAML list
---------

[](#yaml-list)

This is a simple list of subdomains in YAML (I picked YAML over JSON because you can easily add comments).

Subdomains are added as a simple list (ex. `www`, `smtp`, etc.). Regular expressions are supported but MUST be quoted and delimited by slashes (ex. `"/www[0-9]+/"`).

Validators
----------

[](#validators)

### PHP implementation

[](#php-implementation)

Subdomain validator for multitenant apps written in PHP. Simply checks if a subdomain is in the list.

#### Installation

[](#installation)

```
composer require nkkollaw/reserved-subdomains

```

#### Usage

[](#usage)

```
Bool \nkkollaw\Multitenancy\Validators\Subdomain::isReserved($subdomain[, $yaml_file]);

```

Example:

```
$subdomain = 'www2';
if (\nkkollaw\Multitenancy\Validators\Subdomain::isReserved($subdomain)) {
    throw new Exception('Sorry, subdomain is reserved');
}

```

Contributing
------------

[](#contributing)

Pull requests are welcome.

It would be nice to implement a validator in different languages (Node, Ruby? PHP is in /php)

The following \*nix commands might be useful while editing the list:

```
cat reserved-subdomains.yaml | sort # sort entries

awk '{if (++dup[$0] == 1) print $0;}' reserved-subdomains.yaml # remove duplicates

awk '{if (++dup[$0] == 1) print $0;}' reserved-subdomains.yaml | sort # remove duplicates + sort

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% 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.

###  Release Activity

Cadence

Every ~34 days

Total

3

Last Release

3279d ago

### Community

Maintainers

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

---

Top Contributors

[![nkkollaw](https://avatars.githubusercontent.com/u/999994?v=4)](https://github.com/nkkollaw "nkkollaw (34 commits)")[![Kristories](https://avatars.githubusercontent.com/u/774338?v=4)](https://github.com/Kristories "Kristories (2 commits)")

---

Tags

multitenancyphpsaassubdomainyaml

### Embed Badge

![Health badge](/badges/nkkollaw-reserved-subdomains/health.svg)

```
[![Health](https://phpackages.com/badges/nkkollaw-reserved-subdomains/health.svg)](https://phpackages.com/packages/nkkollaw-reserved-subdomains)
```

###  Alternatives

[daux/daux.io

Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly

825191.0k1](/packages/daux-dauxio)[sspooky13/yaml-standards

Standards for yaml files

11518.3k3](/packages/sspooky13-yaml-standards)[prohalexey/the-choice

253.3k](/packages/prohalexey-the-choice)[opensoft/simple-serializer

Simple Serializer

1914.2k1](/packages/opensoft-simple-serializer)

PHPackages © 2026

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