PHP code example of fyre / path

1. Go to this page and download the library: Download fyre/path library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

fyre / path example snippets


use Fyre\Utility\Path;

$baseName = Path::baseName($path);

$dirName = Path::dirName($path);

$extension = Path::extension($path);

$fileName = Path::fileName($path);

$path = Path::format($pathInfo);

$isAbsolute = Path::isAbsolute($path);

$path = Path::join(...$paths);

$normalized = Path::normalize($path);

$pathInfo = Path::parse($path);

$path = Path::resolve(...$paths);