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
Requires (Dev)
- mockery/mockery: 0.9.1
- phpunit/phpunit: 4.0.20
This package is not auto-updated.
Last update: 2024-01-20 13:15:05 UTC
README
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 }