PHPackages                             yagneshprajapati/url-history-tracker - 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. yagneshprajapati/url-history-tracker

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

yagneshprajapati/url-history-tracker
====================================

A package to track and manage URL history

v1.0.5(1y ago)022MITPHPPHP ^7.3|^8.0

Since Aug 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yagnesh987/url-history-tracker)[ Packagist](https://packagist.org/packages/yagneshprajapati/url-history-tracker)[ RSS](/packages/yagneshprajapati-url-history-tracker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

Url History Tracker
===================

[](#url-history-tracker)

`url-history-tracker` is a Laravel package that tracks the last few URLs visited by a user during their session. It allows you to easily access these URLs, providing a handy way to redirect users back to a previous page or perform other actions based on their navigation history.

Features
--------

[](#features)

- Tracks the last N URLs visited by the user (configurable).
- Provides a simple API to access the Nth last URL.
- Option to retrieve URLs by their position in history (e.g., 2nd last, 3rd last).

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

[](#installation)

You can install the package via Composer:

```
composer require yagneshprajapati/url-history-tracker

# Publish

php artisan vendor:publish --tag=config --provider="YagneshPrajapati\UrlHistoryTracker\UrlHistoryTrackerServiceProvider"

# Example:

use Illuminate\Support\Facades\Redirect;

// Get the 2nd last URL (default behavior)
$secondLastUrl = Redirect::getLastUrl();

// Get the 3rd last URL
$thirdLastUrl = Redirect::getLastUrl(3);

// Get the most recent URL (after the first one was popped)
$lastUrl = Redirect::getLastUrl(1);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

6

Last Release

642d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/445553574eb3ef038ed3d899e50bda57c44492a8217eb7314ef8794f5b846925?d=identicon)[yagnesh987](/maintainers/yagnesh987)

---

Top Contributors

[![yagnesh987](https://avatars.githubusercontent.com/u/79301791?v=4)](https://github.com/yagnesh987 "yagnesh987 (2 commits)")

### Embed Badge

![Health badge](/badges/yagneshprajapati-url-history-tracker/health.svg)

```
[![Health](https://phpackages.com/badges/yagneshprajapati-url-history-tracker/health.svg)](https://phpackages.com/packages/yagneshprajapati-url-history-tracker)
```

PHPackages © 2026

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