sinevia/php-library-native
Composer 安装命令:
composer require sinevia/php-library-native
包简介
Native filesystem handling. When speed is of essence
README 文档
README
Using the native functions of the operating system to boost speed
Background
Installation
Using composer
composer require sinevia/php-library-native
Usage
echo \Sinevia\Native::userHome();
Methods
In alphabetical order
-
commandExists($command) {
-
directoryClean($directoryPath)
-
directoryCreate($directoryPath)
-
directoryCopyRecursive($sourceDirectoryPath, $destinationDirectoryPath, $force = false)
-
directoryMergeRecursive($sourceDirectoryPath, $destinationDirectoryPath)
-
directoryDeleteRecursive($directoryPath)
-
exec($command)
- result in $lastExecOut
-
fileCopy($srcFilePath, $targetFilePath)
-
fileDelete($filePath)
-
fileReplaceText($filePath, $string, $replacement)
-
fileReplaceTextRegex($filePath, $regex, $replacement)
-
isLinux() {
-
isOsx()
-
isWindows()
-
userHome()
统计信息
- 总下载量: 741
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2018-12-15