Path management the OO way

0.9.4 2020-12-08 09:25 UTC

This package is auto-updated.

Last update: 2021-04-08 10:07:59 UTC


README

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