ivory / serializer-bundle
Serializer for PHP 7.0+ supporting JSON, XML, YAML & CSV
Installs: 83 811
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 7
Open Issues: 2
Type:symfony-bundle
Requires
- php: ^7.0 || ^8.0
- ivory/serializer: ^1.0
- symfony/cache: ^3.1 || ^4.0 || ^5.0
- symfony/framework-bundle: ^3.0 || ^4.0 || ^5.0
Requires (Dev)
- doctrine/annotations: ^1.0
- friendsofphp/php-cs-fixer: ^2.0
- friendsofsymfony/rest-bundle: ^2.0
- phpunit/phpunit: ^5.4 || ^6.5 || ^9.5
- symfony/form: ^3.0 || ^4.0 || ^5.0
- symfony/phpunit-bridge: ^3.0 || ^4.0 || ^5.0
- symfony/translation: ^3.0 || ^4.0 || ^5.0
- symfony/yaml: ^3.0 || ^4.0 || ^5.0
Replaces
- egeloen/serializer-bundle: ^1.0.0
This package is auto-updated.
Last update: 2024-03-01 18:27:27 UTC
README
The bundle provides an integration of the Ivory Serializer library for your Symfony project.
use Ivory\Serializer\Format; $stdClass = new \stdClass(); $stdClass->foo = true; $stdClass->bar = ['foo', [123, 432.1]]; $serializer = $container->get('ivory.serializer'); echo $serializer->serialize($stdClass, Format::JSON); // {"foo": true,"bar": ["foo", [123, 432.1]]} $deserialize = $serializer->deserialize($json, \stdClass::class, Format::JSON); // $deserialize == $stdClass
Documentation
Testing
The bundle is fully unit tested by PHPUnit with a code coverage close to 100%. To execute the test suite, check the travis configuration.
Contribute
We love contributors! Ivory is an open source project. If you'd like to contribute, feel free to propose a PR! You can follow the CONTRIBUTING file which will explain you how to set up the project.
License
The Ivory Google Map Bundle is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this source code.