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

Api Platform Stream Translate Bundle Laravel Package

johnkhansrc/api-platform-stream-translate-bundle

A Symfony bundle for API Platform that integrates stream-based translation, helping expose translated API resources and content through configurable workflows. A lightweight option for adding translation support to API Platform projects.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

Feature scoping — read-time localization of API payloads. If your roadmap includes multi-language API responses (product catalogs, content APIs, tenant-specific locale), this package addresses one narrow slice: translating the values of annotated entity properties during API Platform's serialization flow. That lets you decide "localize in the response layer" versus "localize in the data layer" (per-locale rows / Doctrine Translatable), which is a real architectural fork with different migration, caching, and editorial-workflow costs.

Build vs. buy vs. fork. The package's entire value proposition is boilerplate elimination: instead of hand-writing a normalizer or serializer decorator per entity, you annotate properties. That is typically 0.5–2 engineering days of custom code, fully owned and versioned with your app. So the honest decision frame is not "adopt vs. build" but "adopt as a stopgap, or spend a day building the 60-line normalizer you'll control." This assessment should be run against that baseline cost, not against zero.

Time-to-market for i18n on an existing Symfony/ApiPlatform service. As a low-ceremony add for a bounded set of string properties, it can move an MVP i18n launch forward by a sprint — provided you accept vendor risk (see below) and pin your ApiPlatform version.

Ecosystem correction worth flagging upward: despite being described as a "Laravel/PHP package," this is a Symfony / API Platform bundle. It is not usable in Laravel without the API Platform stack. Any roadmap item assuming Laravel compatibility should be closed now.

What it does not decide for you: it does not solve write-path translation (storing multi-locale input), fallback-locale policy, translation key management, caching of translated payloads, or per-tenant locale negotiation. Those remain product/architecture decisions and are usually the larger share of the work.

What the 3.2.0 release changes — and does not change. Release 3.2.0 is a single maintenance chore ("upgrade symfony"), landed via one external contributor PR; there are no new features, no deprecations, and no documented behavioral changes. Product-level read: the package is not abandoned (a prior "no release since Dec 2023" statement is now stale and should be corrected), but nor is it demonstrably maintained — one dependency-bump PR from a drive-by contributor is a single data point, not evidence of a support process, security response path, or test/CI discipline. The practical consequence is narrow but real: a Symfony constraint bump can change the supported framework range, which is exactly the compatibility question that gates any use. Net effect on the roadmap: neutral. Net effect on the build-vs-adopt recommendation: none.

When to Consider This Package

Consider it if all of these hold:

  • You are on Symfony + API Platform, and you have verified the composer constraint ranges introduced in 3.2.0 against your pinned Symfony and ApiPlatform/Serializer versions. The release history now shows one dependency upgrade after a long gap; do not assume your combination was tested.
  • Translation is needed only on read/serialization for a small, stable set of entity string properties.
  • Your team is comfortable vendoring or forking a small bundle and reading its source before it enters the request pipeline.
  • You can pin the package and the surrounding ApiPlatform/Serializer versions, and you have a plan to remove it.
  • It is a stopgap for a dated milestone, not a long-term platform dependency.

Look elsewhere — or build — if any of these hold:

  • Laravel or non-ApiPlatform stack. Use spatie/laravel-translatable or an equivalent; this package is irrelevant.
  • Zero-star, zero-dependent, single-maintainer project. 3.2.0 does not change this profile. There is still no community support path, no visible security response process, and no guarantee of compatibility with your next ApiPlatform upgrade. A production dependency here remains a supply-chain and maintenance liability in your request path.
  • You need write-path localization, editorial workflows, or per-locale storage. Use Doctrine Translatable (Gedmo/Knp) or a dedicated translation store; a serializer-level annotation is the wrong layer.
  • You need guaranteed correctness under load. Translation lookups inside serialization can mean N lookups per collection response; without caching strategy and warm-up, this becomes a latency and DB-load surprise you'll discover in staging.
  • Compliance/audit constraints on third-party code in the API response path — an unreviewed 0-star package will not clear review, and a chore release is not a substitute for a security review.

Recommended posture (unchanged): treat it as a reference implementation. Read it, spend the day reimplementing the annotation + normalizer in-house, and keep the DX without the dependency.

Re-review triggers: revisit only if (a) a second and third release land with tests/CI and a stated compatibility matrix, or (b) 3.2.0's Symfony bump turns out to be the prerequisite for current ApiPlatform support and our in-house normalizer slips past its timebox. Absent one of those, no further action.

How to Pitch It (Stakeholders)

To executives (one paragraph): We identified a small open-source bundle that could speed up multi-language API support by roughly a sprint, but it carries meaningful vendor risk — no adoption, one maintainer, and it sits directly in our API response path. A new version (3.2.0) shipped recently; it is a maintenance-only dependency upgrade with no new capability, so it does not change the recommendation, though it does mean the project shouldn't be described as abandoned. My recommendation is to not adopt it as a dependency. Instead we'll spend about one engineering day reproducing its approach internally, which gets us the same delivery speed-up with code we own and can maintain. Net effect on the roadmap: neutral; net effect on risk: materially reduced. One clarification for planning stands: this library is Symfony/API Platform–specific, not Laravel — any assumptions to the contrary should be corrected in the roadmap.

To engineering (summary): It's an annotation-driven API Platform extension that translates annotated entity property values during serialization — a thin wrapper over Symfony's translator plus a normalizer. Pros: removes per-entity boilerplate, small surface area. Cons: single maintainer, 0 stars/dependents, no visible test or CI signal; 3.2.0 is a Symfony dependency bump only, so compatibility with current ApiPlatform/Serializer versions is still unverified and must be checked against its composer constraints before anyone installs it; behavior on denormalization and collection-level performance remains undocumented. Ask (unchanged): one engineer spends a day reviewing the source and implementing an in-house equivalent (normalizer or serializer decorator + translation cache warm-up), with a test covering locale fallback and collection responses. If the in-house version slips, we may revisit adoption as a time-boxed, pinned stopgap — but it must not outlive the milestone.

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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console