peterpostmann / uri
URI操作库
1.0.0
2017-11-17 16:03 UTC
Requires
- peterpostmann/fileuri: ^1.0.0
- peterpostmann/parse_uri: ^1.0.0
- peterpostmann/resolve_uri: ^1.0.0
This package is not auto-updated.
Last update: 2024-09-15 04:26:30 UTC
README
为URI(RFC3986 URL,URN,Windows路径,相对路径或文件)提供的URI操作库
安装
通过Composer
composer require peterpostmann/uri
如果您不想使用Composer,请使用子项目中描述的文件,并将它们包含到您的项目中。
使用方法
use peterpostmann\uri; // parse_uri array uri\parse_uri ( string uri [, int $component = -2 [, bool $convertUrlToUrn = null ]] ) // resolve_uri string uri\resolve_uri ( string basePath, string newPath ) string uri\build_uri ( array components ) string uri\convert_url2urn ( string uri, bool convertUrlToUrn = null ) // fileuri string uri\fileuri ( string path [, string basePath] )
许可
MIT许可(MIT)。请参阅许可文件以获取更多信息。