PHPackages                             bakame/laravel-domain-parser - 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. bakame/laravel-domain-parser

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

bakame/laravel-domain-parser
============================

Laravel package to integrate PHP Domain parser.

1.5.0(1mo ago)26534.8k—5.6%8[3 issues](https://github.com/kevindierkx/laravel-domain-parser/issues)3MITPHPPHP ^8.2CI passing

Since Dec 10Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/kevindierkx/laravel-domain-parser)[ Packagist](https://packagist.org/packages/bakame/laravel-domain-parser)[ Docs](https://distortedfusion.com/docs/kevindierkx/laravel-domain-parser)[ RSS](/packages/bakame-laravel-domain-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (18)Versions (17)Used By (3)

Laravel Domain Parser
=====================

[](#laravel-domain-parser)

[![Latest Version](https://camo.githubusercontent.com/6e136df001d373e7b51bcd471dbda3ade8104e5ad531804508ae9f1cbaac72b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6b6576696e646965726b782f6c61726176656c2d646f6d61696e2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://github.com/kevindierkx/laravel-domain-parser/tags)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/8eb7c362c22ae7db08c205d723f7b49cb171ed380e34f7937346ba6bf2698447/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b6576696e646965726b782f6c61726176656c2d646f6d61696e2d7061727365722f63692e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/kevindierkx/laravel-domain-parser/actions)

This Laravel package eases [PHP Domain Parser](https://github.com/jeremykendall/php-domain-parser) *(PDP)* integration in your Laravel application.

PHP Domain Parser is a resource based domain parser implemented in PHP. With it you can easily parse a domain into its component subdomain, registrable domain, second level domain and public suffix parts using the Public Suffix List or IANA Top Level Domain List.

This package doesn't intent to replace or reinvent the API offered by PDP, instead it offers you various entry points to PDP which can be used to validate or process your domain.

Documentation
-------------

[](#documentation)

You will find full documentation on the dedicated [documentation](https://distortedfusion.com/docs/kevindierkx/laravel-domain-parser/getting-started) site.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

To run the tests, run the following command from the project folder:

```
composer test
```

Security
--------

[](#security)

If you discover a security vulnerability within this package, please send an e-mail to Kevin Dierkx via . All security vulnerabilities will be promptly addressed.

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

[](#contributing)

Contributions are welcome and will be [fully credited](https://github.com/kevindierkx/laravel-domain-parser/graphs/contributors). Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72.6% 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 ~177 days

Recently: every ~279 days

Total

16

Last Release

59d ago

Major Versions

0.5.1 → 1.0.02021-03-30

PHP version history (6 changes)0.1.0PHP ^7.1

0.4.0PHP ^7.2

0.5.0PHP ^7.2 || ^8.0

1.0.0PHP ^7.4 || ^8.0

1.2.0PHP ^8.1

1.4.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![kevindierkx](https://avatars.githubusercontent.com/u/2406615?v=4)](https://github.com/kevindierkx "kevindierkx (85 commits)")[![nyamsprod](https://avatars.githubusercontent.com/u/51073?v=4)](https://github.com/nyamsprod "nyamsprod (20 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (4 commits)")[![cfroystad](https://avatars.githubusercontent.com/u/1038204?v=4)](https://github.com/cfroystad "cfroystad (3 commits)")[![ju5t](https://avatars.githubusercontent.com/u/3635751?v=4)](https://github.com/ju5t "ju5t (2 commits)")[![XristMisyris](https://avatars.githubusercontent.com/u/9199363?v=4)](https://github.com/XristMisyris "XristMisyris (1 commits)")[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (1 commits)")[![web-ruslan](https://avatars.githubusercontent.com/u/22293750?v=4)](https://github.com/web-ruslan "web-ruslan (1 commits)")

---

Tags

domain-parseriana-domain-root-zone-dbicannlaravelpublicsuffixlistlaravelianaicanndomain parserdistortedfusion

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bakame-laravel-domain-parser/health.svg)

```
[![Health](https://phpackages.com/badges/bakame-laravel-domain-parser/health.svg)](https://phpackages.com/packages/bakame-laravel-domain-parser)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)

PHPackages © 2026

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