Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Domain Parser Laravel Package

bakame/laravel-domain-parser

Laravel wrapper around the PHP Domain Parser library. Easily resolve registrable domains, public suffixes, and subdomains using the Public Suffix List, with a service provider, facade, and validation rule for reliable domain handling in Laravel apps.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy: Reuse a Public Suffix List–aware parser instead of maintaining custom regex logic for domain/TLD extraction; reduces engineering effort and edge-case bugs.
  • Feature enablement: Multi-tenant custom domains, subdomain routing, email-domain validation, cookie scoping, canonical URL generation, and referrer/domain analytics.
  • Roadmap prioritization: Domain-aware capabilities for SaaS, marketplaces, and auth flows; security use cases such as phishing or blocked-domain checks; compliance needs around cookie domains and tenant isolation.
  • Use-case validation: Quickly prototype domain-sensitive features before committing to a larger platform investment.

When to Consider This Package

  • You are building on Laravel and need PSL-correct domain parsing without writing your own parser.
  • The feature is peripheral or MVP-stage, and a small MIT dependency is acceptable.
  • You can tolerate low adoption signals (26 stars, 0 dependents) and validate maintenance cadence before production use.
  • Look elsewhere if you need high-throughput parsing, active community support, framework-agnostic usage, or stricter dependency governance; consider using bakame/domain-parser directly or a more widely adopted PSL library.

How to Pitch It (Stakeholders)

  • Executives: This package enables reliable domain handling for multi-tenant and security-adjacent features at low cost, but its low adoption means we should treat it as a tactical dependency, not a strategic platform bet.
  • Engineering: It cleanly integrates a proven PSL-based parser into Laravel with minimal footprint under MIT; wrap it behind an internal interface so we can swap implementations if maintenance or performance becomes a concern.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin