PHPackages                             tzfrs/urlextender - 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. tzfrs/urlextender

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

tzfrs/urlextender
=================

This library extends short URLs to longURLs using HTTP-Header Location

0.0.2.1(10y ago)020MITPHP

Since Sep 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tzfrs/urlextender)[ Packagist](https://packagist.org/packages/tzfrs/urlextender)[ RSS](/packages/tzfrs-urlextender/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (8)Used By (0)

URLExtender
===========

[](#urlextender)

[![SensioLabsInsight](https://camo.githubusercontent.com/3f3781cc498755e0ac7f22adfdd433b9339e2a324d03a4608c36604c0b8ad9f5/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36316130613039612d646365612d343136392d616635632d6334633164323666633662652f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/61a0a09a-dcea-4169-af5c-c4c1d26fc6be)

This library can be used to expand short URLs such as  and get the URL that is behind the short URL using Guzzles head method and reading the Location header

Install
-------

[](#install)

Install via [composer](https://getcomposer.org):

```
{
    "require": {
        "tzfrs/urlextender": "0.0.2.1"
    }
}
```

Run `composer install` or `composer update`.

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

[](#getting-started)

Note: You can also see the examples.php for more examples.

### Basic parsing

[](#basic-parsing)

```
