deviantintegral / jms-serializer-uri-handler
A handler for serializing and deserializing PSR-7 URI objects
Installs: 8 581
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 2
Requires
- php: ^7.4||^8.0
- guzzlehttp/psr7: ^2.0
- jms/serializer: ^3.1
Requires (Dev)
- ext-json: *
- friendsofphp/php-cs-fixer: 3.9.5
- phpunit/phpunit: 9.5.21
This package is auto-updated.
Last update: 2024-11-27 11:40:44 UTC
README
This library supports serializing and deserializing URI instances, as defined by PSR-7.
Add this handler to your serializer with the following:
AnnotationRegistry::registerLoader('class_exists'); $this->serializer = SerializerBuilder::create() ->configureHandlers( function (HandlerRegistry $registry) { $registry->registerSubscribingHandler(new UriHandler()); } )->build();