okapi/filesystem
最新稳定版本:1.0.0
Composer 安装命令:
composer require okapi/filesystem
包简介
PHP Filesystem is a PHP library that provides an abstraction layer for the filesystem.
README 文档
README
PHP Path
PHP Filesystem is a PHP library that provides an abstraction layer for the filesystem.
It is based on Node.js's filesystem module.
Installation
composer require okapi/filesystem
Usage
<?php use Okapi\Filesystem\Filesystem; // Write file Filesystem::writeFile('./path/to/file.txt', 'Hello World!'); // Read file $contents = Filesystem::readFile('./path/to/file.txt'); // Remove directory or file Filesystem::rm( './path', recursive: true, force: true, ); // Create directory Filesystem::mkdir( './path/to/directory', recursive: true, mode: 0777, );
Testing
- Run
composer run-script test
or - Run
composer run-script test-coverage
Show your support
Give a ⭐ if this project helped you!
📝 License
Copyright © 2023 Valentin Wotschel.
This project is MIT licensed.
统计信息
- 总下载量: 9.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-18