PHPackages                             bermudaphp/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. [HTTP &amp; Networking](/categories/http)
4. /
5. bermudaphp/url

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

bermudaphp/url
==============

v1.0(3y ago)0261MITPHPPHP ^8.1

Since Mar 3Pushed 3y agoCompare

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

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

Install
=======

[](#install)

```
composer require bermudaphp/url
```

Usage
=====

[](#usage)

```
$url = Url::parse('http://username:password@hostname:9090/path?arg=value#anchor');

^ Bermuda\Url\Url {#231 ▼
  -segments: array:8 [▼
    "scheme" => "http"
    "host" => "hostname"
    "port" => 9090
    "user" => "username"
    "pass" => "password"
    "path" => "/path"
    "query" => "arg=value"
    "fragment" => "anchor"
  ]
}

$url->without('fragment', 'path')->toString(); // "http://username:password@hostname:9090/?arg=value"

$currentUrl = Url::fromGlobals()->toString(); // https://github.com/bermudaphp/url
$currentUrl = $currentUrl->withHost('new-hostname.com');

$currentUrl->host; // 'new-hostname.com'

$currentUrl->toString(); // 'https://new-hostname.com/bermudaphp/url'
$currentUrl->toArray();

^ array:1 [▼
  "segments" => array:3 [▼
    "scheme" => "https"
    "host" => "new-hostname.com"
    "path" => "/bermudaphp/url"
  ]
]

Url::build(['scheme' => 'https', 'host' => 'github.com', 'path' => 'bermudaphp/url']); // "https://github.com/bermudaphp/url"
```

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

1264d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20490712?v=4)[Andrey Shelamkoff](/maintainers/Shelamkoff)[@Shelamkoff](https://github.com/Shelamkoff)

---

Top Contributors

[![Shelamkoff](https://avatars.githubusercontent.com/u/20490712?v=4)](https://github.com/Shelamkoff "Shelamkoff (52 commits)")

---

Tags

build-urlparse-urlphpurl

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25026.8M85](/packages/php-http-cache-plugin)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

85997.3k131](/packages/httpsoft-http-message)[thesis/nats

Async (fiber based) client for Nats.

758.3k](/packages/thesis-nats)

PHPackages © 2026

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