PHPackages                             duy/url\_helper - 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. duy/url\_helper

ActiveLibrary

duy/url\_helper
===============

support some function to manuplation with url

v1.0.1(8y ago)016PHPPHP &gt;=7.0

Since Nov 18Pushed 8y agoCompare

[ Source](https://github.com/NgVanDuy/duy-package001)[ Packagist](https://packagist.org/packages/duy/url_helper)[ RSS](/packages/duy-url-helper/feed)WikiDiscussions master Synced 2d ago

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

duy/url\_helper package
=======================

[](#duyurl_helper-package)

Introduce
---------

[](#introduce)

This package supports manipulation with url:

- Check url.
- Merge an url with a path.
- Parse an url to get partials such as: scheme, host, port.

Additional, this package also provide some simple test codes in order to assert running of source is correct. All codes for testing is placed in *tests* directory.

Install
-------

[](#install)

#### Install Composer

[](#install-composer)

First of all, you need to install *Composer* in [this tutorial](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).

#### Install package duy/url\_helper

[](#install-package-duyurl_helper)

- Create an empty project.
- Open command line in your device and move to your root directory of project, type the follow commands:

    ```
     composer require duy/url_helper

    ```

Usage
-----

[](#usage)

#### Create an instance of UrlHelper

[](#create-an-instance-of-urlhelper)

```
$urlHelper = new UrlHelper();

```

#### Check an url

[](#check-an-url)

```
$urlHelper->isValidUrl($urlToCheck);
//return true if $urlToCheck is a valid url, contraty return false

```

#### Merge an url to a path

[](#merge-an-url-to-a-path)

```
$urlHelper->mergeUrl($baseUrl, $path);
//return a string of url if function runs successful, contrary return false

```

#### Parse an url

[](#parse-an-url)

```
$urlHelper->parseUrl($url);
//return an array of partials in the url if the url is valid, contrary return false

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

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

3099d ago

### Community

Maintainers

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

---

Top Contributors

[![NgVanDuy](https://avatars.githubusercontent.com/u/23038570?v=4)](https://github.com/NgVanDuy "NgVanDuy (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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