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(9y 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 today

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 75% 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

3332d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/999994?v=4)[Niccolo Brogi](/maintainers/nkkollaw)[@nkkollaw](https://github.com/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

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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