A PHP library for parsing, validating, and manipulating URIs according to RFC standards.
League URI is a PHP library for parsing, validating, and manipulating Uniform Resource Identifiers (URIs). It provides RFC-compliant URI handling with immutable objects, solving the problem of inconsistent and error-prone URI manipulation in PHP applications. The library supports IDN domains, IPv4 addresses, and URI template expansion while maintaining strict standards compliance.
PHP developers building web applications, APIs, or any software that requires reliable URI parsing and manipulation. It's particularly valuable for projects needing RFC-compliant URI handling or PSR-7 compatibility.
Developers choose League URI for its strict RFC compliance, immutable architecture that prevents side effects, and comprehensive feature set including IDN support and URI template expansion. It's more robust and standards-compliant than PHP's built-in URL functions.
[READ-ONLY] URI manipulation Library
Parses and validates URIs according to RFC 3986 and 3987 standards, ensuring accurate and reliable handling for web applications and APIs.
Uses immutable value objects to prevent unintended side effects during manipulation, enhancing security and predictability in complex applications.
Handles Internationalized Domain Names and IPv4 addresses with proper validation, though it requires the intl extension or a polyfill for full functionality.
Implements PSR-7 interfaces for seamless integration with modern PHP frameworks and HTTP message handling, as noted in the documentation.
Requires specific PHP extensions like intl for IDN and GMP/BCMath for IPv4; missing extensions cause exceptions, adding deployment complexity.
Mandates PHP 8.1 or higher, which excludes legacy projects or environments not yet upgraded, as stated in the system requirements.
Full feature usage, such as IDN support or HTML parsing, depends on external extensions or polyfills, increasing initial setup effort and potential errors.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.