Download the PHP package peterpostmann/resolve_uri without Composer
On this page you can find all versions of the php package peterpostmann/resolve_uri. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download peterpostmann/resolve_uri
More information about peterpostmann/resolve_uri
Files in peterpostmann/resolve_uri
Download peterpostmann/resolve_uri
More information about peterpostmann/resolve_uri
Files in peterpostmann/resolve_uri
Vendor peterpostmann
Package resolve_uri
Short Description Resolves relative urls, like a browser would
License MIT
Package resolve_uri
Short Description Resolves relative urls, like a browser would
License MIT
Please rate this library. Is it a good library?
Informations about the package resolve_uri
resolve_uri
Resolves relative urls, like a browser would.
This function returns a new URI based on base path (RFC3986 URL, URN, Windows path, relative path or file) and a new path.
Install
Via Composer
If you dont want to use composer copy the resolve_uri.php
file and from [peterpostmann\php-parse_uri][2] the parse_uri.php
file and include it into your project.
Usage
use function peterpostmann\uri\resolve_uri;
string resolve_uri ( string basePath, string newPath)
Example
parse URIs
use function peterpostmann\uri\resolve_uri;
echo resolve_uri('http://a/b/c/d;p?q#x', 'x')."\n";
echo resolve_uri('C:\path\file1.ext', 'file2.ext')."\n";
echo resolve_uri('file://smb/path/to/file', '/new/path/x.ext')."\n";
The above example will output:
License
The MIT License (MIT). Please see License File for more information.
All versions of resolve_uri with dependencies
PHP Build Version
Package Version
The package peterpostmann/resolve_uri contains the following files
Loading the files please wait ....