While there are plenty of excellent URL parsers and builders available, there
are very few projects that can accurately parse a url into its component
subdomain, registrable domain, and public suffix parts.
Consider the domain www.pref.okinawa.jp. In this domain, the public suffix portion is okinawa.jp, the registrable domain is pref.okinawa.jp, and the subdomain is www. You can't regex that.
Other similar libraries focus primarily on URL building, parsing, and manipulation and additionally include public suffix domain parsing. PHP Domain Parser was built around accurate Public Suffix List based parsing from the very beginning, adding a URL object simply for the sake of completeness.
PHP Domain Parser alternatives and related libraries
Based on the "URL" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of PHP Domain Parser or a related project?
PHP Domain Parser RecommendationsThere are no recommendations yet. Be the first to promote PHP Domain Parser!
Have you used PHP Domain Parser? Share your experience. Write a short recommendation and PHP Domain Parser, you and your project will be promoted on Awesome PHP.
Recommend PHP Domain Parser
Recently added PHP Domain Parser resources
Be the first to add one!