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

Zend Mvc Plugin Prg Laravel Package

zendframework/zend-mvc-plugin-prg

The Post/Redirect/Get plugin for zend-mvc prevents duplicate form submissions by redirecting after a successful POST. Configure it to redirect to a route or URL, keeping form data available for the next request.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Roadmap / ecosystem fit: This is a Zend Framework MVC plugin, not a Laravel package. Its only job is to encapsulate the Post/Redirect/Get pattern (POST a form → redirect → GET the result page) so users don't get double-submit warnings. It has no bearing on a Laravel roadmap; any decision it informs is "do we adopt or replicate this pattern."
  • Build vs. buy: Strongly favors build. In Laravel, PRG is already a one-liner (return redirect()->route(...)->withInput()), and the plugin's entire value is a thin file/URL/redirect helper. Copying ~20 lines of behaviour into a base controller is cheaper than a dependency.
  • Use cases it supports (if you were on Zend/Laminas MVC): eliminating duplicate form submissions on checkout, registration, and admin create/edit flows; standardizing multi-step form wizards; enforcing consistent redirect-after-POST behaviour across controllers.
  • Feature decisions: The only shippable feature in 1.2.0 is PHP 7.3 compatibility. That extends the support window for legacy Zend MVC apps but delivers zero new product capability. Do not plan around it.
  • Ecosystem bet: The package's upstream (Zend Framework) is archived and superseded by Laminas; the maintained equivalent is laminas-mvc-plugin-prg. Any new investment should target Laminas or, more likely, your existing framework's native redirect handling.

When to Consider This Package

Consider it only if all of the following hold:

  • You maintain a legacy Zend Framework MVC v3 application (not Laminas, not Laravel).
  • You are pinned to PHP 7.3 and cannot yet upgrade.
  • You are still on zend-stdlib v3.x — 1.2.0 drops support for zend-stdlib v2, which is the one breaking change worth flagging. If you have a v2 constraint anywhere in composer.lock, this release will not install.
  • You want PRG behaviour with zero bespoke code in an existing Zend codebase.

Look elsewhere when:

  • You are on Laravel. Use redirect()->withInput() / session()->flash(); adding this package would create a dependency your application can never actually load. Do not adopt.
  • You are on Laminas — use laminas-mvc-plugin-prg instead; this package is effectively frozen.
  • You need CSRF, validation, or idempotency keys — PRG alone does not protect against replay or duplicate side effects; this plugin adds nothing there.
  • You are planning a framework migration — do not deepen coupling to an archived MVC layer.

Release verdict (1.2.0): Maintenance-only. Additive PHP 7.3 support, a transitive-dependency removal (zend-stdlib v2), no new features, no deprecations of the package's own API. Low urgency; upgrade opportunistically when already bumping the PHP runtime.

How to Pitch It (Stakeholders)

One line: A small utility that stops users from accidentally submitting the same form twice — by redirecting after a successful POST.

For executives: Negligible strategic value. It is a single-purpose helper inside a framework line (Zend Framework) that is no longer actively developed. The 1.2.0 release is a compatibility patch (PHP 7.3) with a minor dependency cleanup. It does not unlock features, reduce cost, or advance any roadmap item — approve it only as routine maintenance on a legacy system, and treat any dependency on it as migration debt to be retired in favour of our standard stack.

For engineering: Low risk, low reward. 1.2.0 is safe to take if you're already on PHP 7.3; verify nothing still resolves zend-stdlib v2 before merging, since that constraint is now dropped. Do not introduce this into Laravel — it cannot run there, and the pattern is already native. Log any remaining usage as a candidate for replacement with laminas-mvc-plugin-prg or in-framework handling at the next refactor.

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.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style