GitPedia

Url

Swiss Army knife for urls.

From crwlrsoft·Updated January 25, 2026·View on GitHub·

This package is for you when PHP's parse_url() is not enough. The project is written primarily in PHP, distributed under the MIT License license, first published in 2018. Key topics include: composer-package, hacktoberfest, idn, parseurl, php.

Latest release: v2.2.0
January 6, 2026View Changelog →
<p align="center"><a href="https://www.crwlr.software" target="_blank"><img src="https://github.com/crwlrsoft/graphics/blob/eee6cf48ee491b538d11b9acd7ee71fbcdbe3a09/crwlr-logo.png" alt="crwlr.software logo" width="260"></a></p>

A Swiss Army knife for URLs

This package is for you when PHP's parse_url() is not enough.

Key Features:

  • Parse a URL and access or modify all its components separately.
  • Resolve any relative reference you may find in an HTML document to an
    absolute URL
    , based on the document's URL.
  • Get not only the full host of a URL, but also the registrable domain,
    the domain suffix and the subdomain parts of the host separately
    (Thanks to the Mozilla Public Suffix List).
  • An advanced API to access and manipulate the URL query component.
  • Compare URLs or components of URLs (e.g. checking if different URLs
    point to the same host or domain)
  • Thanks to symfony/polyfill-intl-idn
    it's also no problem to parse internationalized domain names (IDN).
  • Includes an adapter class which implements the
    PSR-7 UriInterface.

Documentation

You can find the documentation at crwlr.software.

Contributing

If you consider contributing something to this package, read the contribution guide (CONTRIBUTING.md).

Contributors

Showing top 5 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from crwlrsoft/url via the GitHub API.Last fetched: 6/29/2026