Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

pmmp-plugins-of-sky-min/DataConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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