PHPackages                             track\_referrer/demo - 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. track\_referrer/demo

AbandonedLibrary

track\_referrer/demo
====================

Demo package for tracking referrer.

010PHP

Since Aug 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/srarejai/track_referrer)[ Packagist](https://packagist.org/packages/track_referrer/demo)[ RSS](/packages/track-referrer-demo/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Usage Instruction for package GeoCoding Ip addresses.

1. Include class on top using following line.

use track\_referrer\\Demo\\Demo;

2. In composer.json include following line

"require": { "track\_referrer/Demo": "dev-master" }

3. Execute

composer update

4. Add following line to providers array in app.php

track\_referrer\\Demo\\DemoServiceProvider::class

5. Add following line to aliases array

'track\_referrer' =&gt; track\_referrer\\Demo\\Demo::class

5. Use following code in your controller

$fromurl = $\_SERVER\['HTTP\_REFERRER'\];

$urlarray = array();

Include all the url's that you want to check for redirects from.

$urlarray\[\] = ""; $urlarray\[\] = ""; $urlarray\[\] = "";

$refer = new Demo(); $checkrefer = $refer-&gt;IsRedirectedFrom($fromurl, $urlarray); if(!$checkrefer) echo 'Not Redirected from any of the sites'; else echo $checkrefer;

6. Results

statusCode: 100 statusMessage: Error: Invalid Number Of Arguments Passed

statusCode: 101 statusMessage: Error: Second Parameter Should Be Array

statusCode: 102 statusMessage: Error: First Parameter Should Be Valid URL

statusCode: 103 statusMessage: Error: Element Of Second Parameter Is Not A Valid URL

statusCode: 200 statusMessage: Success: Visitor redirected from url

statusCode: 201 statusMessage: Error: Visitor not redirected from any of the mentioned urls

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/86afd482e4c1ca9ba37c3df3eec9b2c16284edd5661604e2bc6841870b75ed2b?d=identicon)[jaya1966](/maintainers/jaya1966)

### Embed Badge

![Health badge](/badges/track-referrer-demo/health.svg)

```
[![Health](https://phpackages.com/badges/track-referrer-demo/health.svg)](https://phpackages.com/packages/track-referrer-demo)
```

PHPackages © 2026

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