承接 myjw3b/file-writing 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固