axy/fs-ifs
Composer 安装命令:
composer require axy/fs-ifs
包简介
Abstraction of file system functions
README 文档
README
Abstraction of file system functions (PHP).
- The library does not require any dependencies.
- Tested on PHP 5.4+, PHP 7, HHVM (on Linux), PHP 5.5 (on Windows).
- Install:
composer require axy/fs-ifs. - License: MIT.
Documentation
The library reproduces built-in file system functions.
Differences:
- The application code to access files not via global functions, and via an object with a particular interface. This object is easily replaced by another implementation. Can use a mock for tests (it does not work with real file system, but with memory).
- Exceptions instead of WARNINGs.
- Separate class for work with opened file.
- Several results are structured as objects (Stat, MetaData) instead associative arrays. It improves the autocomplete.
- Method names are better structured.
- Specific implementations can implement additional features. Log, an isolated directory and etc.
Implementations
This package defines only interfaces. Specific implementations are located in other packages. For example, work with real FS is axy/fs-real.
Classes and interfaces
统计信息
- 总下载量: 120
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-01