Saeghe is a difficult name to pronounce. Therefore, Saeghe project has been renamed to phpkg.
This website no longer receives updates.
Please visit phpkg website at phpkg.com
Resolver namespace is part of the FileManager package.
Here you can see a list of included functions and their documentation.
function realpath(string $path_string): string
It resolves the path and returns an actual path of the given path string. It does not need for the path to exist.
echo realpath('/user/home/./directory/filename.extension'); // Output: '/user/home/directory/filename.extension' echo realpath('/user/home/./directory/another-directory/../filename.extension'); // Output: '/user/home/directory/filename.extension'
function root(): string
It returns the path of the current working directory.
// Assume you are running the index.php under /home/user/project/public directory echo root(); // Output: /home/user/project/public/index.php