Files
wiosna-dev_common-library/docs/Static-methods/Uri.md
2022-02-12 14:46:47 +01:00

1.1 KiB
Raw Blame History

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"

More

  1. Base test case (with common methods and data providers)
  2. Collection of elements
  3. Templates
  4. Exceptions
  5. Static methods
    1. Arrays
    2. Regex
    3. Uri
  6. Value Objects

Back to Readme