PHPackages                             tzfrs/longurl - 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/longurl

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

tzfrs/longurl
=============

This library extends short URLs to longURLs

0.0.5(10y ago)4311proprietaryPHP

Since Aug 28Pushed 10y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (9)Used By (0)

longurl
=======

[](#longurl)

This library can be used to expand short URLs such as  and get the URL that is behind the short URL

Install
-------

[](#install)

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

```
{
    "require": {
        "tzfrs/longurl": "0.0.4"
    }
}
```

Run `composer install` or `composer update`.

Attention
---------

[](#attention)

This library currently only supports methods for getting services, checking if an URL is a short URL and expanding URLs, because I'm just using it for a project that only needs these features. If you want extra features then just open an issue.

For caching, by default this library uses the /tmp/ directory. If you want to change it, just use the 2nd parameter of the constructor to define the cache path

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

[](#getting-started)

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

### Basic parsing

[](#basic-parsing)

```
