jstewmc/write-file
Composer 安装命令:
composer require jstewmc/write-file
包简介
Write a file
README 文档
README
Write a file.
use Jstewmc\WriteFile\Write; (new Write())('/path/to/foo.txt', 'foo'); file_get_contents('/path/to/foo.txt'); // returns 'foo'
This library is a very simple write file service (see jstewmc/read-file for a simple read file service).
This library wraps PHP's native file_put_contents() with a little robust error checking. If the file does not exist, the path is not actually a file, or the file is not readable, an InvalidArgumentException will be thrown.
That's about it!
Author
License
Version
0.1.0, August 31, 2016
- Initial release
统计信息
- 总下载量: 63
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-01