deviantintegral/jms-serializer-uri-handler

A handler for serializing and deserializing PSR-7 URI objects

Maintainers

👁 deviantintegral

Package info

github.com/deviantintegral/jms-serializer-uri-handler

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

Statistics

Installs: 23 465

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 2

v1.2.2 2025-12-18 16:59 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT bb7b781a1218eafb3c542453b73989c3dedc4214

  • Andrew Berry <deviantintegral.woop@gmail.com>

This package is auto-updated.

Last update: 2026-06-28 18:54:30 UTC


README

👁 CI

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