Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pmmp-plugins-of-sky-min/dataconfig
pmmp virion
https://github.com/pmmp-plugins-of-sky-min/dataconfig
config json php pmmp pocketmine virion yaml
Last synced: about 21 hours ago
JSON representation
pmmp virion
- Host: GitHub
- URL: https://github.com/pmmp-plugins-of-sky-min/dataconfig
- Owner: pmmp-plugins-of-sky-min
- License: mit
- Archived: true
- Created: 2022-01-11T16:51:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-06-24T10:56:14.000Z (over 2 years ago)
- Last Synced: 2024-09-26T10:22:04.615Z (about 21 hours ago)
- Topics: config, json, php, pmmp, pocketmine, virion, yaml
- Language: PHP
- Homepage: https://poggit.pmmp.io/ci/sky-min/DataConfig/Data
- Size: 26.4 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DataConfig
PMMP 4.0Save `yaml or json or txt or ini` files asynchronously
# How to use
## load Data
```php
public Data $data;$this->data = new Data(string $fileName, $type, array $default);
```## save data
```php
$this->data->save();
```## get data
```php
$this->data->getAll();
$this->data->{key:magic method}
```## set data
```php
$this->data->setAll($array);
$this->data->{key:magic method} = $value;
```### $type
```php
Data::AUTO
Data::YAML
Data::JSON
Data::LIST
Data::INI
```