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

ActiveLibrary

edbox/valid-url
===============

Simple class to cast all what is needed about url string. Host, Ip, validation, domain, etc..

v1.0.1(5y ago)026PHPPHP &gt;=5.6.0

Since Sep 9Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Url string parser
=================

[](#url-string-parser)

This package depends on `parse_url`, `gethostbyname` php functions. It provides a simple way to cast all what is needed about url string:

- Domain
- Ip
- Prefix
- Validation
- etc.

Getting Started
---------------

[](#getting-started)

### Install

[](#install)

Run the following command:

```
composer require edbox/valid-url
```

Usage
-----

[](#usage)

```
$url = 'https://www.example.com/index.php?request=product_cat&product_info=22726';

$object = new Edbox\Tools\ValidUrl($url);
// or
// $object = (new Edbox\Tools\ValidUrl)->setUrlString($url);
var_dump(

    /**
     * Available get methods
     */
    $object->toArray()
    // $object->getPrefix()
    // $object->getDomain()
    // $object->getUniqDomain()
    // $object->getPath()
    // $object->getQuery()
    // $object->getFragment()
    // $object->getIp()
    // $object->isValid()
);
```

Credits
-------

[](#credits)

- [Edvinas Gurevicius](https://github.com/gadnis)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

2076d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d6e483642eb2e33abcfa3878dd1b69ae2de83fa0bf10c2251b83911d67da213?d=identicon)[gadnis](/maintainers/gadnis)

---

Top Contributors

[![gadnis](https://avatars.githubusercontent.com/u/10948341?v=4)](https://github.com/gadnis "gadnis (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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