open-source-contributions / camino

File system path handling the OO way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

File system path handling the OO way

License:MIT License


Languages

Language:PHP 100.0%