pmmp-plugins-of-sky-min / DataConfig

pmmp virion

Home Page:https://poggit.pmmp.io/ci/sky-min/DataConfig/Data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DataConfig

PMMP 4.0

Save yaml or json or txt or ini files asynchronously

How to use

load Data

public Data $data;

$this->data = new Data(string $fileName, $type, array $default);

save data

$this->data->save();

get data

$this->data->getAll();
$this->data->{key:magic method}

set data

$this->data->setAll($array);
$this->data->{key:magic method} = $value;

$type

Data::AUTO
Data::YAML
Data::JSON
Data::LIST
Data::INI

About

pmmp virion

https://poggit.pmmp.io/ci/sky-min/DataConfig/Data

License:MIT License


Languages

Language:PHP 100.0%