Utils
class Utils
Methods
jsonDecode
(ResponseInterface $response, bool $assoc = true)
static
No description
flattenJson
(array $data, string $key = null)
: static array
Method for flattening a nested array.
normalizeUrl
(string $url)
: static string
Method for normalize an URL string.
addPaths
(UriInterface $uri, ...$paths $paths)
: static UriInterface
Add an unlimited list of paths to a given URI.
appendPath
(UriInterface $uri, $path)
static
No description
Details
static normalizeUrl(string $url)
Method for normalize an URL string.
Append the http:// prefix if not present, and add a closing url separator when missing.