PHPackages                             laravel-validation-rules/subdomain - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. laravel-validation-rules/subdomain

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

laravel-validation-rules/subdomain
==================================

Validate a user submitted subdomain

2.3.0(5y ago)2840.1k6[1 issues](https://github.com/laravel-validation-rules/subdomain/issues)[3 PRs](https://github.com/laravel-validation-rules/subdomain/pulls)Apache-2.0PHP

Since Mar 11Pushed 2y ago2 watchersCompare

[ Source](https://github.com/laravel-validation-rules/subdomain)[ Packagist](https://packagist.org/packages/laravel-validation-rules/subdomain)[ RSS](/packages/laravel-validation-rules-subdomain/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (3)Versions (10)Used By (0)

Subdomain
=========

[](#subdomain)

Validates a user submitted subdomain in your application.

 [ ![](https://camo.githubusercontent.com/3ea1aebc87219dd0d1cd9f000bfe9cab252ee3107ed27f9b932f2363f29947c1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d76616c69646174696f6e2d72756c65732f737562646f6d61696e2e7376673f7374796c653d666c61742d737175617265) ](https://travis-ci.org/laravel-validation-rules/subdomain) [ ![](https://camo.githubusercontent.com/17c41b245aae1ee2686fef378781f9df1aeacd8a479072e5cf385edd569e205b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d76616c69646174696f6e2d72756c65732f737562646f6d61696e2e7376673f7374796c653d666c61742d737175617265) ](https://scrutinizer-ci.com/g/laravel-validation-rules/subdomain/code-structure/master/code-coverage) [ ![](https://camo.githubusercontent.com/af428c8db703d6601ef403e7c151cae719946104a568c2ef32f63f500e85e5d3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d76616c69646174696f6e2d72756c65732f737562646f6d61696e2e7376673f7374796c653d666c61742d737175617265) ](https://scrutinizer-ci.com/g/laravel-validation-rules/subdomain) [ ![](https://camo.githubusercontent.com/f0dac5108dae519dfbb45ed93941a5019c74f95580d3993edc47bfc7d01bff85/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c61726176656c2d76616c69646174696f6e2d72756c65732f737562646f6d61696e2e7376673f7374796c653d666c61742d737175617265) ](https://github.com/laravel-validation-rules/subdomain/blob/master/LICENSE)

Supports Laravel: 5.5, 5.6, 5.7 &amp; 5.8

Installation
------------

[](#installation)

```
composer require laravel-validation-rules/subdomain
```

Usage
-----

[](#usage)

```
use LVR\Subdomain\Subdomain;

$request->validate([
    'domain' => ['required', new Subdomain],
]);
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 73.7% 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 ~183 days

Total

6

Last Release

2106d ago

Major Versions

v1.0.1 → v2.0.02019-02-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/4aa56557de1c571ed78fb23fda585f3fd461425339df673fb293c609a6719c81?d=identicon)[clarkeash](/maintainers/clarkeash)

---

Top Contributors

[![clarkeash](https://avatars.githubusercontent.com/u/1612186?v=4)](https://github.com/clarkeash "clarkeash (14 commits)")[![ssx](https://avatars.githubusercontent.com/u/254889?v=4)](https://github.com/ssx "ssx (4 commits)")[![adriangonzales](https://avatars.githubusercontent.com/u/486071?v=4)](https://github.com/adriangonzales "adriangonzales (1 commits)")

---

Tags

laravelphpsubdomainvalidation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-validation-rules-subdomain/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-validation-rules-subdomain/health.svg)](https://phpackages.com/packages/laravel-validation-rules-subdomain)
```

###  Alternatives

[illuminate/validation

The Illuminate Validation package.

18837.7M1.6k](/packages/illuminate-validation)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M50](/packages/proengsoft-laravel-jsvalidation)[illuminate/json-schema

The Illuminate Json Schema package.

262.1M13](/packages/illuminate-json-schema)[danielebarbaro/laravel-vat-eu-validator

A simple package that validates EU VAT numbers against the central ec.europa.eu database

41401.6k](/packages/danielebarbaro-laravel-vat-eu-validator)

PHPackages © 2026

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