PHP 的 io 库
此包的官方仓库似乎已不存在,因此该包已被冻结。
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 是一个用于处理目录和文件夹的小型库。
使用方法
<?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 }