PHPackages                             salamwaddah/laravel-canonical - 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. salamwaddah/laravel-canonical

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

salamwaddah/laravel-canonical
=============================

:package\_description

v1.2.0(10mo ago)22.6kMITPHPPHP &gt;=7.3CI passing

Since Feb 8Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/salamwaddah/laravel-canonical)[ Packagist](https://packagist.org/packages/salamwaddah/laravel-canonical)[ Docs](https://github.com/salamwaddah/laravel-canonical)[ RSS](/packages/salamwaddah-laravel-canonical/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (7)Used By (0)

Laravel canonical
=================

[](#laravel-canonical)

Laravel Canonical is a simple package designed to help you manage canonical URLs in your Laravel applications. This package provides a convenient way to generate canonical URLs based on the current request, allowing you to avoid duplicate content issues and improve SEO.

Installation
============

[](#installation)

```
composer require salamwaddah/laravel-canonical
```

Usage
=====

[](#usage)

Add to your layout or any blade file where canonical is needed

```

```

Configuration
=============

[](#configuration)

The package comes with a default configuration file that allows you to specify which query parameters should be included in the canonical URL.

The following default configuration will filter out any query parameters in the page URL and only allow the `page=1`, `page=2`, `page=...`

```
// canonical.php
'allowed_params' => [
    'page',
],
```

You can customize this configuration to meet your specific requirements. To publish the configuration file, run the following command:

```
php artisan vendor:publish --tag=laravel-canonical-config
```

Testing
=======

[](#testing)

```
composer test
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance53

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~124 days

Total

5

Last Release

328d ago

Major Versions

0.0.0 → 1.0.02024-02-08

### Community

Maintainers

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

---

Top Contributors

[![salamwaddah](https://avatars.githubusercontent.com/u/26627088?v=4)](https://github.com/salamwaddah "salamwaddah (17 commits)")

---

Tags

canonicallaravelseolaravelseocanonical

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/salamwaddah-laravel-canonical/health.svg)

```
[![Health](https://phpackages.com/badges/salamwaddah-laravel-canonical/health.svg)](https://phpackages.com/packages/salamwaddah-laravel-canonical)
```

###  Alternatives

[artesaos/seotools

SEO Tools for Laravel and Lumen

3.3k5.1M60](/packages/artesaos-seotools)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)

PHPackages © 2026

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