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.3.0(1mo ago)23.2kMITPHPPHP &gt;=8.0CI passing

Since Feb 8Pushed 1mo 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 today

READMEChangelog (4)Dependencies (10)Versions (11)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

47

—

FairBetter than 93% of packages

Maintenance90

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% 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 ~138 days

Recently: every ~206 days

Total

7

Last Release

50d ago

Major Versions

0.0.0 → 1.0.02024-02-08

PHP version history (2 changes)0.0.0PHP &gt;=7.3

v1.3.0PHP &gt;=8.0

### 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 (19 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (2 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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