eserozvataf / scabbia2-yaml
This package is abandoned and no longer maintained.
No replacement package was suggested.
Scabbia2 Yaml Component
v0.1.2
2015-09-16 02:38 UTC
Requires
- php: >=5.6.0
Requires (Dev)
This package is auto-updated.
Last update: 2023-09-08 20:06:38 UTC
README
This component is a YAML parser allows serialization and deserialization in YAML format.
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
- List of All Scabbia2 Components
- Documentation
- Contributor List
- License Information I II
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.