Skip to content

peterpostmann/php-uri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uri

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.

About

URI manipulation Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages