sabre/uri 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sabre/uri

最新稳定版本:3.0.2

Composer 安装命令:

composer require sabre/uri

包简介

Functions for making sense out of URIs.

README 文档

README

sabre/uri is a lightweight library that provides several functions for working with URIs, staying true to the rules of RFC3986.

Partially inspired by Node.js URL library, and created to solve real problems in PHP applications. 100% unit tested and many tests are based on examples from RFC3986.

The library provides the following functions:

  1. resolve to resolve relative urls.
  2. normalize to aid in comparing urls.
  3. parse, which works like PHP's parse_url with special cases for some Windows-style paths 9.
  4. build to do the exact opposite of parse.
  5. split to easily get the 'dirname' and 'basename' of a URL without all the problems those two functions have.

Build status

Build Status

release minimum PHP version
master PHP 7.4
3.0 PHP 7.4
2.3 PHP 7.4
2.2 PHP 7.1
2.0,2.1 PHP 7.0
1.x PHP 5.4.7

Further reading

Questions?

Head over to the sabre/dav mailinglist, or you can also just open a ticket on GitHub.

Made at fruux

This library is being developed by fruux. Drop us a line for commercial services or enterprise support.

统计信息

  • 总下载量: 33.27M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 304
  • 点击次数: 1
  • 依赖项目数: 44
  • 推荐数: 0

GitHub 信息

  • Stars: 293
  • Watchers: 20
  • Forks: 19
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-01-04