Common and useful classes, methods, exceptions etc.
Useful methods related to uri
Class: Meritoo\Common\Utilities\Uri
File: src/Utilities/Uri.php
Builds url with given root url and parts of url (concatenates them using "/")
string $rootUrl
- Protocol and domain (or domain only)string ...$urlParts
- Parts of url that will be concatenated with the rool url by "/"
- rootUrl:
"http://my.example"
- urlParts:
""
(an empty string) - result:
"http://my.example"
- rootUrl:
"http://my.example"
- urlParts:
"/test", "/123"
- result:
"http://my.example/test/123"