Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alaugks/article-symfony-serializer
Create a custom Symfony Normalizer for mapping values
https://github.com/alaugks/article-symfony-serializer
denormalization emarsys emarsys-api jmsserializer jmsserializerbundle normalization php php8 serializer symfony
Last synced: 6 days ago
JSON representation
Create a custom Symfony Normalizer for mapping values
- Host: GitHub
- URL: https://github.com/alaugks/article-symfony-serializer
- Owner: alaugks
- Created: 2023-03-28T17:12:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-12T10:52:31.000Z (6 days ago)
- Last Synced: 2024-11-12T11:36:54.664Z (6 days ago)
- Topics: denormalization, emarsys, emarsys-api, jmsserializer, jmsserializerbundle, normalization, php, php8, serializer, symfony
- Language: PHP
- Homepage: https://dev.to/alaugks/create-a-custom-symfony-normalizer-for-mapping-values-4nc2
- Size: 38.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Create a custom Symfony Normalizer for mapping values
## A part of article Series: Mapping FieldValueIDs for the payload of the Emarsys API
https://dev.to/elevado/create-a-custom-symfony-normalizer-for-mapping-values-4nc2
* Example with Serializer default service configuration ([Branch](https://github.com/alaugks/article-symfony-serializer))
* Example with PropertyNormalizer and custom PropertyTypeExtractor ([Branch](https://github.com/alaugks/article-symfony-serializer/tree/property-normalizer))## Docker image
### Start docker image
```bash
docker compose -f docker-compose.yml up --build -d
```### Run composer install
```bash
docker exec article_symfony_serializer composer install
```### Run tests
```bash
docker exec article_symfony_serializer bin/phpunit
```### Open bash
```bash
docker exec -it article_symfony_serializer bash
```## Frontend
Open frontend: http://localhost:8080/