PHPackages                             rhincodon/utm-url-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. rhincodon/utm-url-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

rhincodon/utm-url-parser
========================

UTM URL String Parser

1.0(10y ago)825.0k4[3 issues](https://github.com/Rhincodon/utm-url-parser/issues)MITPHPPHP &gt;=5.4.0

Since Aug 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Rhincodon/utm-url-parser)[ Packagist](https://packagist.org/packages/rhincodon/utm-url-parser)[ Docs](https://github.com/rhincodon/utm-url-parser)[ RSS](/packages/rhincodon-utm-url-parser/feed)WikiDiscussions master Synced today

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

UTM URL String Parser
=====================

[](#utm-url-string-parser)

[![Build Status](https://camo.githubusercontent.com/199119196309caec8bb8eb5d4c92adec856066982d64636b1ac66a0cb513fdaf/68747470733a2f2f7472617669732d63692e6f72672f5268696e636f646f6e2f75746d2d75726c2d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Rhincodon/utm-url-parser)

Install
-------

[](#install)

Via Composer

```
$ composer require rhincodon/utm-url-parser
```

Usage
-----

[](#usage)

```
    $utmUrl = 'http://test.com/test?utm_source=bing&&utm_medium=cpc&utm_campaign=rolex&utm_term=rolex+two';
    $parser = new \Rhinodontypicus\Parsers\UtmParser();
    $utmString = $parser->parse($utmUrl);
    if ($utmString->isValid()) { // true
        echo $utmString->source; // bing
        echo $utmString->medium; // cpc
        echo $utmString->campaign; // rolex
        echo $utmString->term; // rolex two
    }
```

Credits
-------

[](#credits)

- [rhinodontypicus](https://github.com/rhincodon)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

3985d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0bffa0284dbcdc91f949e5e3986677201953bbf259fcee322eafccfb3e1ac20?d=identicon)[Rhincodon](/maintainers/Rhincodon)

---

Top Contributors

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

---

Tags

urlstringparserUTM

### Embed Badge

![Health badge](/badges/rhincodon-utm-url-parser/health.svg)

```
[![Health](https://phpackages.com/badges/rhincodon-utm-url-parser/health.svg)](https://phpackages.com/packages/rhincodon-utm-url-parser)
```

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k954.1M2.5k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k959.8M160](/packages/doctrine-lexer)[masterminds/html5

An HTML5 parser and serializer.

1.8k269.7M322](/packages/masterminds-html5)[matomo/device-detector

The Universal Device Detection library, that parses User Agents and detects devices (desktop, tablet, mobile, tv, cars, console, etc.), clients (browsers, media players, mobile apps, feed readers, libraries, etc), operating systems, devices, brands and models.

3.5k26.4M183](/packages/matomo-device-detector)[creof/wkb-parser

Parser for well-known binary (WKB/EWKB) object data

605.3M16](/packages/creof-wkb-parser)[creof/geo-parser

Parser for geography coordinate strings

624.6M15](/packages/creof-geo-parser)

PHPackages © 2026

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