PHPackages                             black-bits/laravel-seo-rewrite - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. black-bits/laravel-seo-rewrite

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

black-bits/laravel-seo-rewrite
==============================

A clean and easy to use package to create seo rewrites using events.

1.0.0(7y ago)15MITPHPPHP ^7.1

Since Jul 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/black-bits/laravel-seo-rewrite)[ Packagist](https://packagist.org/packages/black-bits/laravel-seo-rewrite)[ Docs](https://github.com/black-bits/laravel-seo-rewrite)[ RSS](/packages/black-bits-laravel-seo-rewrite/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

Laravel Seo Rewrite
===================

[](#laravel-seo-rewrite)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3fb461484542498526d9469f77393ed2a90e9ce9e7268d66b5100faef7a19bea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626c61636b2d626974732f6c61726176656c2d73656f2d726577726974652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/black-bits/laravel-seo-rewrite)[![Total Downloads](https://camo.githubusercontent.com/42c47848cb83d981e9ea7c823324ea0125166373e2062263f3bf7d88648c2764/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626c61636b2d626974732f6c61726176656c2d73656f2d726577726974652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/black-bits/laravel-seo-rewrite)

Introduction
------------

[](#introduction)

With this package we want to give you a simple way to manage your SEO rewrites in your Laravel application. Rewrites are created and deleted by dispatching events in your code.

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

[](#installation)

You can install the package via composer.

```
composer require black-bits/laravel-seo-rewrite
```

Next you need to run our migrations.

```
php artisan migrate
```

When you install the package our LaravelSeoRewrites Middleware is automatically pushed to the global MiddlewareGroup and activated.

Usage
-----

[](#usage)

To create a new redirect, simply create a new SeoRewrite entry.

- The source value must be a relative path matching one of your routes.
- The destination can be any relative or absolute URL.
- The type must be a valid redirect type (permanent, temporary, etc.)

```
SeoRewrite::create([
    'source'      => '/old-route',
    'destination' => '/new-route',
    'type'        => 301
]);

SeoRewrite::create([
    'source'      => '/old-route',
    'destination' => 'https://your-new.domain/old-route',
    'type'        => 308
]);
```

We run a basic redirect loop detection on model save, but not all cases can be detected. Please be aware that you can potentially create loops.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Oliver Heck](https://github.com/oheck)
- [Andreas Przywara](https://github.com/aprzywara)
- [Adrian Raeuchle](https://github.com/araeuchle)
- [All Contributors](../../contributors)

Support us
----------

[](#support-us)

Black Bits, Inc. is a web and consulting agency specialized in Laravel and AWS based in Grants Pass, Oregon. You'll find an overview of what we do [on our website](https://blackbits.io).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

2848d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5817559bd224c59f893745c3bbfa308db2786b67e16c4c44cc4472826e9d571?d=identicon)[aprzywara](/maintainers/aprzywara)

![](https://www.gravatar.com/avatar/12f99b0d20f4c0281e21cd28d12a44d2789c673a5bacade150d0e1150bdd9464?d=identicon)[oheck](/maintainers/oheck)

---

Top Contributors

[![aprzywara](https://avatars.githubusercontent.com/u/10901792?v=4)](https://github.com/aprzywara "aprzywara (1 commits)")[![araeuchle](https://avatars.githubusercontent.com/u/14943512?v=4)](https://github.com/araeuchle "araeuchle (1 commits)")

---

Tags

laravelseoblackbitsrewritesseo-rewriteslaravel-seo-rewrite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/black-bits-laravel-seo-rewrite/health.svg)

```
[![Health](https://phpackages.com/badges/black-bits-laravel-seo-rewrite/health.svg)](https://phpackages.com/packages/black-bits-laravel-seo-rewrite)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[digitaldream/laravel-seo-tools

Laravel Seo package for Content writer/admin/web master who do not know programming but want to edit/update SEO tags from dashboard

1558.4k](/packages/digitaldream-laravel-seo-tools)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)[elegantly/laravel-seo

An Elegant &amp; flexible SEO tag builder for Laravel

122.9k](/packages/elegantly-laravel-seo)

PHPackages © 2026

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