thephpleague/uri

repository·master·Indexed 22 days ago

https://github.com/thephpleague/uri

A PHP package providing classes to manage URIs adhering to standards like PSR-7. Requires PHP >= 8.1 and optional extensions such as intl for IDN support, GMP or BCMatch for IPv4 conversion, and dom for HTML content.

Tokens
228
Snippets
1
Records
2
Agent score
28%

What's inside league/uri

  1. Check system requirements for URI

    master

    Before using the URI package, ensure your environment meets the following requirements:

    • PHP Version: PHP >= 8.1 (latest stable version recommended).
    • IDN Support: To handle IDN (Internationalized Domain Name) hosts, you must have the intl extension installed or a polyfill like symfony/polyfill-intl-idn. Without this, an exception will be thrown when interacting with such hosts.
    • IPv4 Conversion: To convert a host as an IPv4 address, you need at least one of the following:
      • The GMP extension
      • The BCMatch extension
      • A 64-bits PHP version Failure to meet one of these will result in an exception.
    • HTML Content: Parsing or generating HTML-related content requires the dom extension.