URL utilities

Learn how to create a new Inphinit project.

URL slug

{placeholder}

use Inphinit\Utility\Url; $path = '/character/Félix the Cat'; $url = new Url($path); $url->normalize(Url::PATH_SLUG); echo $url;

Slug e-mail address in URL path

use Inphinit\Utility\Url; $path = '/address/baz@bar.foo'; $url = new Url($path); $url->normalize(Url::PATH_SLUG); echo $url;

Custom URL slug

{placeholder}

PATH_ASCII

{placeholder}

Convert accets to ascii in URL path

{placeholder}

Normalize unicode URL path

{placeholder}

Sort querystring

{placeholder}

Resolve URL path

{placeholder}

Custom default ports

{placeholder}

URL application

{placeholder}

Go to homepage
Star us on Github