Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

filesite-io/dirscanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

DirScanner

Directory and file scanner, a PHP implement of filesite.io.

Installation

Install the latest version with

composer require filesite/dirscanner

If you havn't install the composer, check their website: PHP Composer

Basic Usage

<?php
use Filesite\DirScanner;
$scanner = new DirScanner();
$rootDir = __DIR__ . '/../src/';
//set the scan dir src/
$scanner->setRootDir($rootDir);
$maxScanDeep = 1; //set max scan deepth
//Scan the dir and get the dir tree
$dirTree = $scanner->scan($rootDir, $maxScanDeep);
print_r($dirTree);
//get the scan results in array
$scanResults = $scanner->getScanResults();
print_r($scanResults);

Documentation

Please visit our homepage: FileSite.io

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /