blok/utils
Composer 安装命令:
composer require blok/utils
包简介
A series of utilites functions for PHP
关键字:
README 文档
README
Utilities script for PHP projects
Installation
Install via composer
composer require blok/utils
Usage
Arr
Blok\Utils\Arr is a bunch of array related methods utilities that you can use as static call exemple :
Blok\Utils\Arr::csvToArray('xxx.csv')
Will transform a csv file to an array
Str
Blok\Utils\Str is a bunch of String related methods utilities that you can use as static call exemple :
Str::smrtr('{hello} world', ["hello", "Hello"])
Will replace the braced {hello} with the value of the array
Utils
Blok\Utils\Utils is a bunch of common PHP utils methods that you can use as static call exemple :
Utils::getJSON("xxx.json"")
Will make a file_get_contents + a json_decode
Utils::removeSubfolder($your_dir, ".git"")
Will remove all the .git folder.
Security
If you discover any security related issues, please email instead of using the issue tracker.
Credits
统计信息
- 总下载量: 7.96k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-16