myjw3b/file-writing
Composer 安装命令:
composer create-project myjw3b/file-writing
包简介
File database handler for easily storing, updating, and selecting info.
关键字:
README 文档
README
An easy way to store some config operations within text files.
Install
composer require myjw3b/file-writing
Autoload
make sure to include this at the top of your page
use JW3B\Data\FileWriting; include "vendor/autoload.php";
Storage
$FileWriting = new FileWriting('cache/file-data'); $FileWriting->save('name/to-reference/later',[ 'works' => [ 'with' => 'arrays', 'multi' => [ 'deep' => 'it doesnt', 'matter' => [ 'how' => [ 'deep' => 'you go' ] ] ] ] ]);
Retreiving Data
$FileWriting = new FileWriting('cache/file-data'); $var = $FileWriting->get_file('name/to-reference/later'); echo '<pre>'.print_r($var,1).'</pre>';
Output
Array
(
[works] => Array
(
[with] => arrays
[multi] => Array
(
[deep] => it doesnt
[matter] => Array
(
[how] => Array
(
[deep] => you go
)
)
)
)
)
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-03