bovsunovsky / serialize-study-library
This is a serializeStudyLibrary project.
1.0.0
2020-08-13 14:42 UTC
Requires
- php: >=7.4
- spatie/array-to-xml: ^2.12
- symfony/yaml: ^5.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-03-06 19:25:00 UTC
README
This is a study serialize library.
Installation
Either run
composer require bovsunovsky/serialize-study-library
or add
"bovsunovsky/serialize-study-library": "~2.0"
to the require section of your composer.json.
Usage
- Add: use BOA\Serializer;
- Set returned format by method setReturnedFormat(),
- Call method serialize($data);
Example:
$seralizer = new Serializer(); $seralizer->setReturnedFormat('xml'); echo $seralizer->serialize($data);
Tests
Run with console :" ./tests/serializeTest" or "php tests/serializeTest"
License
This project is released under the terms of the BSD-3-Clause license.
Copyright (c) 2020, Alexandr Bovsunovsky