-
Notifications
You must be signed in to change notification settings - Fork 0
Releases: zxc7563598/php-utils
Releases · zxc7563598/php-utils
v1.1.3
Assets 2
v1.1.2
新增内容:
新增以下方法:
| 方法 | 说明 |
|---|---|
| HttpClient::downloadFile() | 下载远程文件并保存到本地 |
Assets 2
v1.1.1
无关痛痒的README调整
Assets 2
v1.1.0
新增内容:
数据导出类 DataExporter
传入数据、文件名、文件路径等信息
返回存储完成的文件路径,可直接用于下载
新增以下方法:
| 方法 | 说明 |
|---|---|
| DataExporter::exportTxt() | 导出 TXT |
| DataExporter::exportMarkdown() | 导出 Markdown |
| DataExporter::exportCsv() | 导出 CSV |
| DataExporter::exportJson() | 导出 JSON |
| DataExporter::exportSql() | 导出 SQL |
| DataExporter::exportHtml() | 导出 HTML |
| DataExporter::exportXml() | 导出 XML |
Assets 2
v1.0.1
变更内容:
数组转换为 CSV 格式的字符串 Arr::arrayToCsv() 方法增加可为空的文件路径入参,支持写入到文件
增加内容:
新增:读取 CSV 文件并返回数组格式 Arr::csvToArray() 方法
Assets 2
v1.0.0
🧰 v1.0.0 初始发布
常用 PHP 工具集,涵盖字符串、数组、网络等实用操作。
- 轻量级静态类集合
- 工具函数覆盖多场景
- 随时可插入项目使用
📦 本组件也包含在 hejunjie/tools 中,整合使用更方便:
composer require hejunjie/tools