Uri Class
Aurora\Helpers Namespace
Methods
getSeparator
Get the platform directory separator
Return Value
string
Signature
public function getSeparator(): string
trimEndingSeparator
Remove the trailing directory separator from the given path
Parameters
-
string$path— Path to the directory
Return Value
string
Signature
public function trimEndingSeparator(string $path): string
getRelativePath
Get the relative path between two absolute paths
Parameters
-
string$from— Absolute path from -
string$to— Absolute path to
Return Value
string
Signature
public function getRelativePath(string $from, string $to): string
join
Join two or more path components
Parameters
-
array$parts— Parts of the path
Return Value
string
Signature
public function join(array $parts): string