URI manipulation Library

1.0.0 2017-11-17 16:03 UTC

This package is not auto-updated.

Last update: 2024-12-22 06:42:48 UTC


README

Software License Build Status

URI manipulation Library for URIs (RFC3986 URL, URN, Windows path, relative path or file)

Install

Via Composer

composer require peterpostmann/uri

If you dont want to use composer use the files as described in the sub-projects and include them into your project.

Usage

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] ) 

License

The MIT License (MIT). Please see License File for more information.