PHPackages                             oldmine/relative-to-absolute-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. oldmine/relative-to-absolute-url

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

oldmine/relative-to-absolute-url
================================

Library adaptation to translate relative url to absolute. Original library: https://sourceforge.net/projects/absoluteurl/

1162PHP

Since Jun 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/oldmine/relative-to-absolute-url)[ Packagist](https://packagist.org/packages/oldmine/relative-to-absolute-url)[ RSS](/packages/oldmine-relative-to-absolute-url/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

RelativeToAbsoluteUrl
=====================

[](#relativetoabsoluteurl)

This script converts the relative url to absolute url, provided a base url.

For more, look here:

Usage:
------

[](#usage)

### First step - add library to project

[](#first-step---add-library-to-project)

#### Composer (.json)

[](#composer-json)

```
{
    "require": {
        "oldmine/relative-to-absolute-url": "master"
    }
}

```

#### Composer (Command Line)

[](#composer-command-line)

```
composer require oldmine/relative-to-absolute-url

```

#### Require:

[](#require)

```
require_once('src/RelativeToAbsoluteUrl.php');

```

### Second step - call static method urlToAbsolute() in class RelativeToAbsoluteUrl

[](#second-step---call-static-method-urltoabsolute-in-class-relativetoabsoluteurl)

```
$absoluteUrl = RelativeToAbsoluteUrl::urlToAbsolute('http://test.com/dir1/dir2/', 'test')

```

Author/credits
--------------

[](#authorcredits)

1. Original author: David R. Nadeau, NadeauSoftware.com
2. Edited and maintained by: Nitin Kr, Gupta, publicmind.in
3. Edited and maintained by: Daniil Zhelninskiy

Changelog
---------

[](#changelog)

[CHANGELOG](CHANGELOG.md)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/509322033d9f2bed6fb998f6240ace227636d44fa707ba9c926bb37154cbc2be?d=identicon)[oldmine](/maintainers/oldmine)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/oldmine-relative-to-absolute-url/health.svg)

```
[![Health](https://phpackages.com/badges/oldmine-relative-to-absolute-url/health.svg)](https://phpackages.com/packages/oldmine-relative-to-absolute-url)
```

PHPackages © 2026

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