PHPackages                             rdx/laravel-link-url - 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. rdx/laravel-link-url

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

rdx/laravel-link-url
====================

Mutable Laravel links &amp; urls

2.7(1mo ago)07.4k↑37.5%MITPHP

Since Dec 29Pushed 1y agoCompare

[ Source](https://github.com/rudiedirkx/laravel-link-url)[ Packagist](https://packagist.org/packages/rdx/laravel-link-url)[ RSS](/packages/rdx-laravel-link-url/feed)WikiDiscussions master Synced 1mo ago

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

Mutable Laravel links, urls and redirects
=========================================

[](#mutable-laravel-links-urls-and-redirects)

What?
-----

[](#what)

Normal Laravel links, urls and redirects aren't mutable, because they're ready strings. You make them and that's it. You can't add query params after, and you can't add a `#fragment` at all.

This makes for unreadable links/urls:

```
$link = link_to_route('users.show', 'Some label here', ['user' => 321, 'report' => 123], ['title' => 'The title of the link', 'id' => "link-{$user->id}"]);

```

Which part is a URL component, and which part a custom query param, and which part an HTML attribute..?

How?
----

[](#how)

Add the service provider (happens automatically):

```
rdx\linkurl\LinkUrlServiceProvider::class

```

Make sure `laravelcollective/html` is installed. It makes links.

Links, urls and redirects are mutable objects now:

```
// Link: View users
echo linkurl_to_route('users.show', 'View user', [$user])->query('report', 14)->fragment('table-reports');

// Link: x
echo linkurl_to_route('reports.delete', 'x', [$report])->add('class', 'delete')->withCsrf();

// Url: https://example.com/users/123/edit?return=https%3A%2F%2Fexample.com%2Fusers
$url = routeurl('users.edit', [$user])->query('return', route('users.index'));

// Redirect: /users/123#table-reports
return redirect()->route('users.show', [$user])->fragment('table-reports');

```

Links and Urls are built in `__toString()` at the last moment.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance60

Regular maintenance activity

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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 ~155 days

Recently: every ~271 days

Total

18

Last Release

53d ago

Major Versions

1.11 → 2.12023-04-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/78549c1dc5c83ec0201c9afc66762c6d5bbf770291b12bae5a7a65350f950dba?d=identicon)[rudiedirkx](/maintainers/rudiedirkx)

---

Top Contributors

[![rudiedirkx](https://avatars.githubusercontent.com/u/168024?v=4)](https://github.com/rudiedirkx "rudiedirkx (25 commits)")

### Embed Badge

![Health badge](/badges/rdx-laravel-link-url/health.svg)

```
[![Health](https://phpackages.com/badges/rdx-laravel-link-url/health.svg)](https://phpackages.com/packages/rdx-laravel-link-url)
```

###  Alternatives

[illuminate/support

The Illuminate Support package.

582107.1M34.5k](/packages/illuminate-support)[illuminate/collections

The Illuminate Collections package.

27071.5M822](/packages/illuminate-collections)[illuminate/events

The Illuminate Events package.

13454.3M1.8k](/packages/illuminate-events)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.0M314](/packages/illuminate-redis)[patricktalmadge/bootstrapper

Twitter Bootstrap markup generator

557407.2k4](/packages/patricktalmadge-bootstrapper)

PHPackages © 2026

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