PHPackages                             webignition/absolute-url-deriver - 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. webignition/absolute-url-deriver

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

webignition/absolute-url-deriver
================================

Derives an absolute URL from relative and source URLs

3.0(7y ago)1314.8k1[1 PRs](https://github.com/webignition/absolute-url-deriver/pulls)10MITPHPPHP &gt;=7.2CI failing

Since Jul 16Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/webignition/absolute-url-deriver)[ Packagist](https://packagist.org/packages/webignition/absolute-url-deriver)[ Docs](https://github.com/webignition/absolute-url-deriver)[ RSS](/packages/webignition-absolute-url-deriver/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (3)Versions (23)Used By (10)

Absolute URL deriver [![Build Status](https://camo.githubusercontent.com/30647cf5f8e694c0ae654dbd61451bd622ba889bce57648062398b2a25f53d53/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f77656269676e6974696f6e2f6162736f6c7574652d75726c2d646572697665722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/webignition/absolute-url-deriver)
=================================================================================================================================================================================================================================================================================================================================================================

[](#absolute-url-deriver-)

Overview
--------

[](#overview)

Derives absolute URL from relative and source URLs.

Useful when:

- extracting full HREF URLs for links in a HTML document
- determining absolute new URL for a 301 redirect where the HTTP server returned a relative Location value

Usage
-----

[](#usage)

### The "Hello World" example

[](#the-hello-world-example)

```
