PHPackages                             natanael-aguiar/safe-redirect - 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. natanael-aguiar/safe-redirect

ActiveLibrary

natanael-aguiar/safe-redirect
=============================

A simple way to redirect your pages with PHP easily and safely

v1.0.0(2y ago)03GPL-3.0-or-laterPHPPHP &gt;=7.4

Since Oct 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/natanael-aguiar/safe-redirect)[ Packagist](https://packagist.org/packages/natanael-aguiar/safe-redirect)[ RSS](/packages/natanael-aguiar-safe-redirect/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Safe Redirect
=============

[](#safe-redirect)

**Safe Redirect** is a PHP package that provides a simple and safe way to perform HTTP redirects in your applications. It allows you to make redirects with customizable HTTP status codes, offering flexibility and security when handling user navigation.

Instalação
----------

[](#instalação)

You can install Safe Redirect via Composer. Run the following command in the terminal:

```
composer require natanael-aguiar/safe-redirect
```

Use
---

[](#use)

To use Safe Redirect in your application, first, import the `SafeRedirect` class and then create an instance of it. You can pass a custom HTTP status code when creating the instance, or use the default status code, which is 302 (Found).

```
