There is no license information available for the latest version (1.0.0) of this package.
An io library for PHP
1.0.0
2014-09-09 14:25 UTC
Requires (Dev)
- mockery/mockery: 0.9.1
- phpunit/phpunit: 4.0.20
This package is not auto-updated.
Last update: 2024-11-05 02:58:42 UTC
README
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 }