PHPackages                             transprime-research/php-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. transprime-research/php-url

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

transprime-research/php-url
===========================

Urls in PHP made easy

1.0.2(2y ago)221[1 issues](https://github.com/transprime-research/php-url/issues)MITPHPPHP &gt;=8.1

Since Aug 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/transprime-research/php-url)[ Packagist](https://packagist.org/packages/transprime-research/php-url)[ Docs](https://transprime-research.github.io/php-url/)[ RSS](/packages/transprime-research-php-url/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

[![](https://github.com/transprime-research/assets/raw/master/php-url/twitter_header_photo_2.png)](https://github.com/transprime-research/assets/blob/master/php-url/twitter_header_photo_2.png)

[ ![Build Status](https://camo.githubusercontent.com/1b68662f136224c21c29e4154e229bcdcfa85a7a19cd07f163f93e4dc26e2e0a/68747470733a2f2f7472617669732d63692e6f72672f7472616e737072696d652d72657365617263682f7068702d75726c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/transprime-research/php-url)[ ![Latest Stable Version](https://camo.githubusercontent.com/52db43b2cb5c49d0ae0810c5c43080de5f8f04fd43c6c7e0efc5955d2d2be177/68747470733a2f2f706f7365722e707567782e6f72672f7472616e737072696d652d72657365617263682f7068702d75726c2f762f737461626c65)](https://packagist.org/packages/transprime-research/php-url)[ ![Total Downloads](https://camo.githubusercontent.com/a451a8adb8f6898aed8c4c7ed004a952bb4a6835446df79c32dae01550d0b189/68747470733a2f2f706f7365722e707567782e6f72672f7472616e737072696d652d72657365617263682f7068702d75726c2f646f776e6c6f616473)](https://packagist.org/packages/transprime-research/php-url)[ ![Latest Unstable Version](https://camo.githubusercontent.com/cfb644264b7821d62ac9929571bf9a1d598f930bc3a7793be1ac0cb0232bbdb3/68747470733a2f2f706f7365722e707567782e6f72672f7472616e737072696d652d72657365617263682f7068702d75726c2f762f756e737461626c65)](https://packagist.org/packages/transprime-research/php-url)[ ![Latest Monthly Downloads](https://camo.githubusercontent.com/57ca8a3cbaba7ec633fb6612fc7d2b0829cec3d8f1a496ed5fd92a9ecba59a73/68747470733a2f2f706f7365722e707567782e6f72672f7472616e737072696d652d72657365617263682f7068702d75726c2f642f6d6f6e74686c79)](https://packagist.org/packages/transprime-research/php-url) [ ![License](https://camo.githubusercontent.com/68d8cca821ea899d9bb4b82d687d695cd5113a20d362fe6e50418907baba913b/68747470733a2f2f706f7365722e707567782e6f72672f7472616e737072696d652d72657365617263682f7068702d75726c2f6c6963656e7365)](https://packagist.org/packages/transprime-research/php-url)

About PHP-URL
-------------

[](#about-php-url)

This works this way

> Do it Like a PRO 🆗

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

[](#installation)

- `composer require transprime-research/php-url`

Quick Usage
-----------

[](#quick-usage)

Use it like this...

```
$url = new Url(
    fullDomain: 'http://localhost:8080',
    path: '/api/hello',
    query: ['name' => 'John', 'public' => 'yes'],
);

// Or

$url = Url::make(
    scheme: 'http://',
    domain: 'localhost',
    port: '8080',
    path: '/api/hello',
    query: ['name' => 'John', 'public' => 'yes'],
);

(string) $url; // http://localhost:8080/api/hello?name=John&public=yes
$url->toString(); // http://localhost:8080/api/hello?name=John&public=yes
```

Other Usages
------------

[](#other-usages)

```
$url = Url::make()
    ->setScheme('http://')
    ->setDomain('localhost')
    ->setPort('8080')
    ->setPath('/api/hello')
    ->addToQuery('name', 'John')
    ->addToQuery('public', 'yes');

(string) $url; // http://localhost:8080/api/hello?name=John&public=yes
```

Coming Soon
-----------

[](#coming-soon)

-

> Api implementation to be decided

Additional Information
----------------------

[](#additional-information)

See other packages in this series here:

-  \[A smart PHP if...elseif...else statement\]
-  \[A functional PHP pipe in object-oriented way\]
-  \[Array now an object\]
-  \[A smart PHP try...catch statement\]
-  \[A smart Carbon + Collection package\]
-  \[Jsonable Http Request(er) package with Collections response\]

Similar packages
----------------

[](#similar-packages)

- luzzardi/php-url
- martinmdev/php-url
- simlux/php-url
- thesmart/php-url

Licence
-------

[](#licence)

MIT (See LICENCE file)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~1 days

Total

3

Last Release

1044d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/364011bafbabff7b8c66b670b16ae372944dd4cc555531affffd901aae53d297?d=identicon)[omitobisam](/maintainers/omitobisam)

---

Top Contributors

[![omitobi](https://avatars.githubusercontent.com/u/16482234?v=4)](https://github.com/omitobi "omitobi (16 commits)")

---

Tags

urlphplaravelhelpers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/transprime-research-php-url/health.svg)

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

###  Alternatives

[transprime-research/piper

PHP Pipe method execution with values from chained method executions

174.7k2](/packages/transprime-research-piper)

PHPackages © 2026

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