Skip to content

philasearch/php-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads Build Status

PHP IO

PHP IO is a small library built to work with directories and folders.

Usage

<?php

use Philasearch\IO\Directory as Directory;
use Philasearch\IO\File      as File;

$dir = new Directory( '/path/to/directory' );

$files = $dir->getFiles(); // returns an array of files

foreach ( $files as $file )
{
    $file->readFile();  // returns the file contents as a string
    $file->getPath();   // returns the file path
    $file->getName();   // returns the file name
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published