2017 © Pedro Peláez
 

library normurl

Normalize URL

image

ddliu/normurl

Normalize URL

  • Wednesday, November 5, 2014
  • by ddliu
  • Repository
  • 1 Watchers
  • 1 Stars
  • 59 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

normurl

Normalize URL., (*1)

Features

  • Resolve relative URL
  • Remove anchor
  • Remove dot segment
  • Convert scheme and host name to lower case (TODO)

Installation

composer require ddliu\normurl

Usage

use ddliu\normurl\Url;

echo Url::normalize('../hello/world.html', 'http://example.com/about/index.html');
// http://example.com/hello/world.html

License

MIT, (*2)

This project is based on url_to_absolute by David R. Nadeau., (*3)

The Versions

05/11 2014

dev-master

9999999-dev

Normalize URL

  Sources   Download

MIT

by dong

05/11 2014

v0.1.1

0.1.1.0

Normalize URL

  Sources   Download

MIT

by dong

05/11 2014

v0.1.0

0.1.0.0

Normalize URL

  Sources   Download

MIT

by dong