Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.36 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.36 KB

Latest Stable Version Minimum PHP Version Downloads License Build Status Scrutinizer Code Quality Code Coverage

Camino

File system path handling the OO way

Installation

composer install sebastianfeldmann/camino

Usage

<?php

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';
}