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

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

alirezasalehizadeh/url
======================

An PHP tool for work with urls.

v1.0.0(2y ago)03MITPHPPHP ^8.2

Since May 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alirezasalehizadeh/URL)[ Packagist](https://packagist.org/packages/alirezasalehizadeh/url)[ RSS](/packages/alirezasalehizadeh-url/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

URL
===

[](#url)

An PHP tool for work with urls.

Requirements
------------

[](#requirements)

PHP &gt;= 8.2

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

[](#installation)

via Composer:

```
composer require alirezasalehizadeh/url

```

Usage
-----

[](#usage)

```
use Alirezasalehizadeh\URL\URL;

// URL-encodes string
URL::encode(string $string): string

// Decodes URL-encoded string
URL::decode(string $string): string

// Encodes data with MIME base64
URL::encodeBase64(string $string): string

// Decodes data encoded with MIME base64
URL::decodeBase64(string $string, bool $strict = false): string|false

// Parse a URL and return its components
URL::parse(string $string): array|string|int|false|null

// Fetches all the headers sent by the server in response to an HTTP request
URL::getHeaders(string $string, bool $associative = false, $context = null): array|false

// Extracts all meta tag content attributes from a file and returns an array
URL::getMetaTags(string $filename, bool $useIncludePath = false): array|false
```

Contributing
------------

[](#contributing)

Send pull request or open issue for contributing.

License
-------

[](#license)

[MIT](LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

1082d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d2fea36dd7d7e08bb16f8800f37b9b56e69e0e5cc2749603c96efe6fb378cb1?d=identicon)[alirezasalehizadeh](/maintainers/alirezasalehizadeh)

---

Top Contributors

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

---

Tags

php

### Embed Badge

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

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

###  Alternatives

[akaunting/laravel-setting

Persistent settings package for Laravel

495805.1k7](/packages/akaunting-laravel-setting)[qcod/laravel-gamify

Add gamification in laravel app with reputation point and badges support

680347.0k1](/packages/qcod-laravel-gamify)[kartik-v/yii2-widget-sidenav

An enhanced side navigation menu styled for bootstrap (sub repo split from yii2-widgets)

364.0M8](/packages/kartik-v-yii2-widget-sidenav)[parallax/filament-comments

Add comments to your Filament Resources.

130222.1k2](/packages/parallax-filament-comments)[sop/crypto-encoding

A PHP implementation of textual encodings of cryptographic structures.

161.4M27](/packages/sop-crypto-encoding)[eiriksm/site-schema

Allows you to get the complete picture of a site schema, to use for CI for example

111.4M](/packages/eiriksm-site-schema)

PHPackages © 2026

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