Weave 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

Doctrine Jms Json Laravel Package

webit/doctrine-jms-json

A PHP package that bridges Doctrine with JMS serialization for JSON handling, helping you serialize and deserialize entities cleanly in Laravel or Doctrine-based applications.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Serialization strategy (build vs. buy vs. glue): Informs whether the team hand-rolls array/DTO transforms or adopts a metadata-driven serializer. This package is a thin adapter between Doctrine and JMS Serializer—not a serialization framework—so the real decision is whether JMS Serializer belongs in the stack at all.
  • API contract and data-exposure policy: If adopted, it supports decisions about which entity fields are exposed per endpoint, role, or API version (serialization groups, exclusion policies, max-depth rules, custom handlers). That is a product-facing concern when internal/admin APIs share a domain model with public APIs.
  • Data-model direction: The package only makes sense if Doctrine entities remain the source of truth. It directly conflicts with a roadmap toward Eloquent-first Laravel development, so it is a forcing function on the persistence-layer decision.
  • Scope of use cases it enables: Complex object-graph (de)serialization for internal/admin APIs, legacy Symfony/Doctrine services maintained inside a PHP monorepo or service mesh, bulk import/export jobs, and DTO hydration where annotations/YAML/XML metadata is already in place.
  • Dependency risk posture: 6 stars, 0 dependents, last release March 2020, score 0.31 — this is a "vendor/abandoned dependency" decision, not a platform bet. PM should treat adoption as an accepted maintenance liability with a named owner, not a community-supported choice.
  • Laravel fit: There is no evidence of Laravel-native integration (service provider, config publishing, facade). Adopting it inside Laravel means owning the wiring, which is a resourcing decision, not just a technical one.

When to Consider This Package

Adopt only when most of the following are true:

  • Doctrine ORM and JMS Serializer are already installed, versioned, and maintained in the codebase; this package is pure glue, so its small surface area is acceptable.
  • You need metadata-driven serialization of complex object graphs—groups, exclusion policies, max depth, custom handlers—and hand-written transforms would be significantly more code.
  • The usage is bounded: internal tooling, an admin API, a migration bridge, or a background job—not a customer-facing critical path.
  • The team is willing to pin PHP, Doctrine, and JMS Serializer versions, vendor or fork the package, and own security patches. With no releases since 2020 and zero dependents, assume no upstream support.
  • PHP 8.x / current JMS compatibility has been verified by your own contract tests, not assumed.

Look elsewhere when:

  • The application is greenfield Laravel on Eloquent—use Laravel API Resources, spatie/laravel-data, or Fractal instead.
  • The application is Symfony-first—prefer Symfony Serializer or API Platform over adding JMS Serializer as a second serialization stack.
  • You need active maintenance, responsive security handling, or community validation; 0 dependents means no ecosystem has stress-tested it.
  • You need OpenAPI/schema generation, request validation, pagination, or hypermedia—use API Platform or a Laravel-native data-transfer layer.
  • Serialization is on a hot path; a metadata-driven serializer carries overhead and there are no recent benchmarks or performance work here.

How to Pitch It (Stakeholders)

To executives: This is low-cost glue for systems already committed to Doctrine and JMS Serializer—it is not a strategic investment and should not be adopted on new builds. The material risk is that it has been unmaintained since March 2020 with negligible adoption, so any use implies we own it. Recommend a time-boxed evaluation, not a platform standard.

To engineering: It does one narrow job—convert complex Doctrine objects to and from JSON via JMS Serializer metadata. Adopt it only if both libraries are already in the stack and you accept forking/pinning it; otherwise use the framework-native serialization path. Before adoption, verify PHP 8 compatibility, add contract tests around every serialized shape, and record an owner. Treat 6 stars / 0 dependents / 2020 as a signal to evaluate alternatives first and document why they were rejected.

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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator