mocking-magician/organic
Composer 安装命令:
composer require mocking-magician/organic
包简介
File manager library
README 文档
README
Install
composer require mocking-magician/organic
<? use \MockingMagician\Organic\Facade\FileSystem; /** @var \MockingMagician\Organic\Inode\File $file */ $file = FileSystem::getFile('path/to/file.ext'); $file->getDirectoryContainerPath(); $file->getObjectPath(); $file->getRealPath(); $file->getName(); $file->getExtension(); $file->getPermissions(); $file->getAccessTime(); $file->getModificationTime(); $file->getChangeTime(); $file->getSize(); /** @var MockingMagician\Organic\IO\IOFile $io */ $io = $file->getIO(); $io->write('something'); $io->tell(); $io->truncate(25); $io->passThrough(); $io->read(250); $io->getContent(); $io->getChar(); $io->getCurrentLine(); $io->addContent('some data to append'); $io->seek(13); $io->flush(); $io->eof(); $io->lock(LOCK_EX, $wouldBlock); $io->putContent('that new content'); $io->scanFormat('FS'); //TODO Continue documentation
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: CC-BY-SA-4.0
- 更新时间: 2019-11-11