rawphp / raw-yaml
RawYaml is a wrapper around Symfony's Yaml Library and is used by RawPHP framework and other applications.
Requires
- php: >=5.3.0
- rawphp/raw-base: 1.0.0-RC-2
- symfony/yaml: v2.5.4
Requires (Dev)
- phpdocumentor/phpdocumentor: dev-master
- phpunit/phpunit: 4.2.5
- rawphp/raw-code-standards: 1.*@dev
- satooshi/php-coveralls: dev-master
- squizlabs/php_codesniffer: dev-master
This package is auto-updated.
Last update: 2024-12-20 09:28:57 UTC
README
Package Features
- Load yaml files into arrays
- Save arrays as yaml files
Installation
Composer
RawYaml is available via Composer/Packagist.
Add "rawphp/raw-yaml": "1.0.0-RC-3"
to the require block in your composer.json and then run composer install
.
{ "require": { "rawphp/raw-yaml": "1.0.0-RC-3" } }
You can also simply run the following from the command line:
composer require rawphp/raw-yaml "1.0.0-RC-3"
Tarball
Alternatively, just copy the contents of the RawYaml folder into somewhere that's in your PHP include_path
setting. If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub.
Basic Usage
<?php use RawPHP\RawYaml\Yaml; // new yaml parser instance $yaml = new Yaml( ); // load yaml file $array = $yaml->load( $file ); // save array to yaml $yaml->save( $array, $file );
License
This package is licensed under the MIT. Read LICENSE for information on the software availability and distribution.
Contributing
Please submit bug reports, suggestions and pull requests to the GitHub issue tracker.
Versioning
This package uses the Semantic Versioning standard.
Changelog
21-09-2014
- Tested for PHP 5.3
20-09-2014
- Initial Code Commit