PHPackages                             ka4ivan/laravel-view-sortable - 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. [Templating &amp; Views](/categories/templating)
4. /
5. ka4ivan/laravel-view-sortable

ActiveLibrary[Templating &amp; Views](/categories/templating)

ka4ivan/laravel-view-sortable
=============================

Sort Link and URL for Laravel Framework

1.1.0(11mo ago)7475↓50%MITPHPPHP ^8.0.2CI passing

Since Sep 30Pushed 11mo ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (5)Used By (0)

Sort Link and URL for Laravel Framework
=======================================

[](#sort-link-and-url-for-laravel-framework)

[![License](https://camo.githubusercontent.com/20eaec11eff1cff7a7535739e796c30621aa874ec26a3d007a9d3b2225396f3e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b61346976616e2f6c61726176656c2d766965772d736f727461626c652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ka4ivan/laravel-view-sortable)[![Build Status](https://camo.githubusercontent.com/df12dcc48aefbf5dc2524b67bfd328da07a2e86171e63e3c610cd86fe07c4a6c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6b61346976616e2f6c61726176656c2d766965772d736f727461626c652e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ka4ivan/laravel-view-sortable)[![Latest Stable Version](https://camo.githubusercontent.com/571f77010bf69a270c232371f7bfeafa8e33f96fc461d9988f790455d71b2370/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b61346976616e2f6c61726176656c2d766965772d736f727461626c652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ka4ivan/laravel-view-sortable)[![Total Downloads](https://camo.githubusercontent.com/44682beaf053c9b3bed717f13be8ef0b4a510fc9899ec80055b2d0976b18b43c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b61346976616e2f6c61726176656c2d766965772d736f727461626c652e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ka4ivan/laravel-view-sortable)[![Quality Score](https://camo.githubusercontent.com/818acbca873198ccbeb9c156db88e78a43e7cf18600af253a1f2382835e0606f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b61346976616e2f6c61726176656c2d766965772d736f727461626c652e7376673f7374796c653d666f722d7468652d6261646765)](https://scrutinizer-ci.com/g/ka4ivan/laravel-view-sortable/?branch=main)

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

[](#installation)

1. Require this package with composer

```
composer require ka4ivan/laravel-view-sortable
```

2. Publish package resource:

```
php artisan vendor:publish --provider="Ka4ivan\ViewSortable\ServiceProvider"
```

Usage
-----

[](#usage)

### Examples usage

[](#examples-usage)

```
{!! \Sort::getSortLink('status', 'Status') !!}
// Status

{!! \Sort::getSortLink(sort: 'city', text: 'City', order: 'desc', class: 'text-black', query: ['locale' => 'uk']) !!}
// City

{!! (new \Ka4ivan\ViewSortable\Support\Sort)->getSortLink('phone', 'Phone') !!}
// Phone

{!! \Sort::getSortUrl('status', 'asc') !!}
// http://test.test?sort=status&order=asc

{!! \Sort::getSortUrl('name', 'asc', ['locale' => 'uk']) !!}
// http://test.test?sort=name&order=asc&locale=uk

{!! \Sort::getNextOrder() !!}
// asc|desc
```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance53

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

4

Last Release

356d ago

Major Versions

0.0.1 → 1.0.02024-10-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/2686db262a5d5b2c9fc09afbff60bf7d1600cc0220bc1b90b4c90c62963d56df?d=identicon)[ka4ivan](/maintainers/ka4ivan)

---

Top Contributors

[![ka4ivan](https://avatars.githubusercontent.com/u/75951574?v=4)](https://github.com/ka4ivan "ka4ivan (48 commits)")

---

Tags

urllaravellinksortkachulahtml-sort

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ka4ivan-laravel-view-sortable/health.svg)

```
[![Health](https://phpackages.com/badges/ka4ivan-laravel-view-sortable/health.svg)](https://phpackages.com/packages/ka4ivan-laravel-view-sortable)
```

###  Alternatives

[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)[saade/blade-iconsax

A package to easily make use of Iconsax in your Laravel Blade views.

21138.5k](/packages/saade-blade-iconsax)[mckenziearts/blade-untitledui-icons

A package to easily make use of UntitledUI icons in your Laravel Blade views.

16104.9k5](/packages/mckenziearts-blade-untitledui-icons)

PHPackages © 2026

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