PHPackages                             diversen/get-url-part - 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. diversen/get-url-part

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

diversen/get-url-part
=====================

Very simple and minimal library to get a part of the URL from

v1.0.2(9y ago)119MITPHP

Since Apr 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/diversen/get-url-part)[ Packagist](https://packagist.org/packages/diversen/get-url-part)[ RSS](/packages/diversen-get-url-part/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

get-url-part
============

[](#get-url-part)

Very simple and minimal PHP library to get a part of the URL from $\_SERVER\['REQUEST\_URI'\]. No dependencies.

Install:

```
composer require diversen/get-url-part

```

Usage:

```
use diversen\urlPart

$urlPart = new urlPath();
$urlPArt->getPart(0); // Returns e.g. 'test' from http://localhost:8080/test/etc/

```

Or as a static method:

```
urlPart::get(0);

```

Test:

See [index.php](index.php)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

3351d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23ed91d104f16d10414811ecdafbd5c80a660e658d80ccaadf84f512cfb50629?d=identicon)[diversen](/maintainers/diversen)

---

Top Contributors

[![diversen](https://avatars.githubusercontent.com/u/142675?v=4)](https://github.com/diversen "diversen (7 commits)")

### Embed Badge

![Health badge](/badges/diversen-get-url-part/health.svg)

```
[![Health](https://phpackages.com/badges/diversen-get-url-part/health.svg)](https://phpackages.com/packages/diversen-get-url-part)
```

###  Alternatives

[org_heigl/ghostscript

A PHP-Wrapper around the Ghostscript-CLI

401.9M4](/packages/org-heigl-ghostscript)[kelunik/retry

A tiny library for retrying failed operations.

1621.0k7](/packages/kelunik-retry)

PHPackages © 2026

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