PHPackages                             alexeybob/url - 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. alexeybob/url

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

alexeybob/url
=============

PHP Url manipulation library

v1.0(8y ago)089MITPHPPHP &gt;=5.6.0

Since Apr 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alexeybob/url)[ Packagist](https://packagist.org/packages/alexeybob/url)[ RSS](/packages/alexeybob-url/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PHP Url manipulation library.
=============================

[](#php-url-manipulation-library)

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

[](#installation)

```
$ composer require alexeybob/url dev-master
```

### Example 1

[](#example-1)

```
$url = "http://username:password@hostname:9090/segment1/segment2/segment3/segment4/segment5/segment6?arg1=value1&arg2=value2&arg3=value3&arg4=value4&arg5=value5#anchor";

// result: https://alexeybob:123abc@test.com:9090/common/user/2?arg1=25&arg2=member#shop
echo aburl($url, [
    "scheme" => "https",
    "host" => "test.com",
    "port" => 9090,
    "user" => "alexeybob",
    "pass" => "123abc",
    "path" => [
        1 => 'common',
        2 => 'user',
        3 => 2,
        4 => null,
        5 => null,
        6 => null
    ],
    "query" => [
        "arg1" => 25,
        "arg2" => 'member',
        "arg3" => null,
        "arg4" => null,
        "arg5" => null,
    ],
    "fragment" => "shop"
]);
```

### Example 2

[](#example-2)

```
$url = "http://username:password@hostname:9090/segment1/segment2/segment3/segment4/segment5/segment6?arg1=value1&arg2=value2&arg3=value3&arg4=value4&arg5=value5#anchor";

// result: https://alexeybob:123abc@test.com:9090/common/user/2?arg1=25&arg2=member#shop
echo aburl($url, [
    "scheme" => "https",
    "host" => "test.com",
    "port" => 9090,
    "user" => "alexeybob",
    "pass" => "123abc",
    "path" => '/common/user/2',
    "query" => "arg1=25&arg2=member",
    "fragment" => "shop"
]);
```

### Example 3

[](#example-3)

```
$url = "http://username:password@hostname:9090/segment1/segment2/segment3/segment4/segment5/segment6?arg1=value1&arg2=value2&arg3=value3&arg4=value4&arg5=value5#anchor";

// result: https://test.com
echo aburl($url, [
    "scheme" => "https",
    "host" => "test.com",
    "port" => null,
    "user" => null,
    "pass" => null,
    "path" => null,
    "query" => null,
    "fragment" => null
]);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

2954d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f2676fb44d940ff64f20fcefbf2e5bb205e1ae7dd322d150debd3399274133f?d=identicon)[alexeybob](/maintainers/alexeybob)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexeybob-url/health.svg)

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

PHPackages © 2026

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