Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

eser/scabbia2-yaml

Repository files navigation

Scabbia2 Yaml Component

This component is a YAML parser allows serialization and deserialization in YAML format.

Build Status Scrutinizer Code Quality Total Downloads Latest Stable Version Latest Unstable Version Documentation Status

Usage

Parsing a YAML file

use Scabbia\Yaml\Parser;

$file = file_get_contents('myConfig.yml');

$parser = new Parser();
$config = $parser->parse($file);

var_dump($config);

Writing a YAML file

use Scabbia\Yaml\Dumper;

$config = [
    'type' => 'mongo',
    'username' => 'eserozvataf',
    'password' => 'password'
];

$dumper = new Dumper();
$content = $dumper->dump($config);

file_put_contents('myConfig.yml', $content);

Links

Contributing

It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome. All contributions should be filed on the eserozvataf/scabbia2-yaml repository.

  • To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
  • To report a bug: If something does not work, please report it using GitHub issues.
  • To support: Donate

About

Scabbia2 Yaml Component

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE-Apache
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages