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
======================

v1.0.2(1y ago)03.3k3MITPHPPHP ^8.0|^8.1|^8.2|^8.3

Since Aug 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/OoBook/post-redirector)[ Packagist](https://packagist.org/packages/oobook/post-redirector)[ RSS](/packages/oobook-post-redirector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (5)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

35

—

LowBetter than 80% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~18 days

Total

3

Last Release

599d ago

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

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c9fb771c26c233e5229a100ae3bd4e599416a5a77564779da797458c5a1d751?d=identicon)[OoBook](/maintainers/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 (1 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

[lomkit/laravel-rest-api

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

59152.2k](/packages/lomkit-laravel-rest-api)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[georgeboot/laravel-echo-api-gateway

Use Laravel Echo with API Gateway Websockets

10435.5k](/packages/georgeboot-laravel-echo-api-gateway)[basement-chat/basement-chat

Add a real-time chat widget to your Laravel application.

4983.9k](/packages/basement-chat-basement-chat)[sven/super-basic-auth

A lightweight package to add basic authentication to your Laravel app.

232.6k](/packages/sven-super-basic-auth)[behamin/service-proxy

for proxy or sending requests to other services with useful utilities

102.2k](/packages/behamin-service-proxy)

PHPackages © 2026

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