mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
1.1 KiB
1.1 KiB
Meritoo Common Library
Common and useful classes, methods, exceptions etc.
Uri
Useful methods related to uri
Class: Meritoo\Common\Utilities\Uri
File: src/Utilities/Uri.php
buildUrl(string, string ...): string
Builds url with given root url and parts of url (concatenates them using "/")
Arguments
string $rootUrl- Protocol and domain (or domain only)string ...$urlParts- Parts of url that will be concatenated with the rool url by "/"
Examples
- 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"