PHPackages                             oobook/post-redirector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. oobook/post-redirector

ActiveLibrary[HTTP &amp; Networking](/categories/http)

oobook/post-redirector
======================

v13.0.0(1mo ago)03.8k3MITPHPPHP ^8.3

Since Aug 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/OoBook/post-redirector)[ Packagist](https://packagist.org/packages/oobook/post-redirector)[ RSS](/packages/oobook-post-redirector/feed)WikiDiscussions 13.x Synced yesterday

READMEChangelog (4)Dependencies (7)Versions (9)Used By (3)

POST REDIRECTOR
===============

[](#post-redirector)

 [![Total Downloads](https://camo.githubusercontent.com/24ffeaeec4ce46b1a394afb465e4a6f8ee777ef8f58498c56864e5ff7bcd499b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6f626f6f6b2f706f73742d72656469726563746f72)](https://packagist.org/packages/oobook/post-redirector) [![Latest Stable Version](https://camo.githubusercontent.com/997f597042b58e9d76a68f7b4fb21799482d2b5fe08b5402d08cc12e403f2a85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6f626f6f6b2f706f73742d72656469726563746f72)](https://packagist.org/packages/oobook/post-redirector) [![License](https://camo.githubusercontent.com/8084047561f3c397e7c8569b3e05ab9c824b253616cad3cacf02ea26afda283b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f6f626f6f6b2f706f73742d72656469726563746f72)](https://packagist.org/packages/oobook/post-redirector)

This package provides a convenient way to perform POST redirects within your Laravel application. Unlike the standard redirector()-&gt;to() method, PostRedirector allows you to include additional data that gets submitted via a POST request before the redirection occurs.

Installation
------------

[](#installation)

To install the package, run the following command in your terminal:

```
    composer require oobook/post-redirector

```

Usage
-----

[](#usage)

### Using the PostRedirector Class:

[](#using-the-postredirector-class)

The package provides a PostRedirector class that offers a similar API to the standard Laravel redirect helper. However, it allows you to specify additional data to be submitted in a POST request before the redirection:

```
    Route::get('/old-url', function () {
        $data = [
            'name' => 'John Doe',
            'email' => 'john.doe@example.com',
        ];

        return redirect()
            ->toWithPayload('/new-post-url', $data)
    });
```

In this example, the route redirects the user to /new-url and submits the provided $data array via a POST request before the redirection.

### Available Methods

[](#available-methods)

- **toWithPayload(string $url, array|object $data)** : Sets url and the data to be submitted in the POST request

Benefits
--------

[](#benefits)

- **Flexibility**: Send additional data along with your redirects for processing on the target URL.
- **Maintainable Code**: Avoid complex logic to manually create forms for redirection.
- **Security**: Hidden form submission helps prevent sensitive data from being exposed in the URL.

Contributing
------------

[](#contributing)

We welcome contributions to this package. Please feel free to open an issue or pull request on the GitHub repository.

License
-------

[](#license)

This package is released under the MIT license. See the LICENSE file for more information.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance90

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~104 days

Recently: every ~148 days

Total

7

Last Release

53d ago

Major Versions

v1.0.2 → 12.x-dev2026-05-10

v12.0.0 → 13.x-dev2026-05-11

PHP version history (4 changes)v1.0.0PHP ^8.0|^8.1

v1.0.2PHP ^8.0|^8.1|^8.2|^8.3

12.x-devPHP ^8.2

13.x-devPHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/258306120?v=4)[OoBook](/maintainers/OoBook)[@OoBook](https://github.com/OoBook)

---

Top Contributors

[![unusual-enterprise](https://avatars.githubusercontent.com/u/146723232?v=4)](https://github.com/unusual-enterprise "unusual-enterprise (6 commits)")[![oguzhanbukcuoglu](https://avatars.githubusercontent.com/u/47870922?v=4)](https://github.com/oguzhanbukcuoglu "oguzhanbukcuoglu (4 commits)")

---

Tags

laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oobook-post-redirector/health.svg)

```
[![Health](https://phpackages.com/badges/oobook-post-redirector/health.svg)](https://phpackages.com/packages/oobook-post-redirector)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[lomkit/laravel-rest-api

A package to build quick and robust rest api for the Laravel framework.

59463.6k](/packages/lomkit-laravel-rest-api)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3891.8k](/packages/codewithdennis-larament)[justbetter/laravel-http3earlyhints

A HTTP3 Early Hints Middleware for Laravel

1977.0k4](/packages/justbetter-laravel-http3earlyhints)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
