An io library for PHP

This package's canonical repository appears to be gone and the package has been frozen as a result.

1.0.1 2015-10-30 08:46 UTC

This package is not auto-updated.

Last update: 2024-01-20 13:15:05 UTC


README

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 RubyRainbows\IO\Directory as Directory;
use RubyRainbows\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
}