Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Symfony Yaml Serializer Encoder Decoder Laravel Package

fitbug/symfony-yaml-serializer-encoder-decoder

Adds YAML encoding/decoding support to Symfony’s Serializer component. Install via Composer and register YamlEncoder with YamlEncode/YamlDecode to serialize objects to/from YAML alongside your normalizers. Requires PHP 5.6+.

View on GitHub
Deep Wiki
Context7

Symfony Yaml Serializer Encoder/Decoder

Scrutinizer Code Quality Build Status Dependency Status Latest Stable Version License

This package is a Yaml Encoder and Decoder for the Symfony Serializer component.

Getting Started

Prerequisities

You'll need to install:

  • PHP (Minimum 5.6)

Installing

composer require fitbug/symfony-yaml-serializer-encoder-decoder

Usage

$encoders        = [new YamlEncoder(new YamlEncode(), new YamlDecode())];
$normalizers     = NormalizerFactory::create();
$serializer      = new Serializer($normalizers, $encoders);

See the Symfony Serializer component.

Running the tests

First checkout the library, then run

composer install

Coding Style

We follow PSR2, and also enforce PHPDocs on all functions. To run the tests for coding style violations

vendor/bin/phpcs -p --standard=psr2 src/

Unit tests

We use PHPSpec for unit tests. To run the unit tests

vendor/bin/phpspec run

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle