deviantintegral/jms-serializer-uri-handler

A handler for serializing and deserializing PSR-7 URI objects

Installs: 12 550

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 2

pkg:composer/deviantintegral/jms-serializer-uri-handler

1.2.0 2022-08-10 11:50 UTC

This package is auto-updated.

Last update: 2025-10-09 16:33:29 UTC


README

CircleCI

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();