PHP code example of sebastianfeldmann / camino

1. Go to this page and download the library: Download sebastianfeldmann/camino 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/ */

    

sebastianfeldmann / camino example snippets




use SebastianFeldmann\Camino;

$file = Camino\Path\File::create(__FILE__);
$dir  = Camino\Path\Directory::create(__DIR__);

if ($file->isInDirectory($dir)) {
    echo 'file is located inside the directory';
}