2017 © Pedro Peláez
 

library mushroom

expand links to their final destination

image

willwashburn/mushroom

expand links to their final destination

  • Thursday, July 5, 2018
  • by willwashburn
  • Repository
  • 3 Watchers
  • 6 Stars
  • 891 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 17 Versions
  • 25 % Grown

The README.md

Mushroom :mushroom: CircleCI (all branches) Coveralls Packagist Packagist MIT License

Expand a link., (*1)

Mushroom finds the final destination of a shortened (or not shortened) url., (*2)

Note: Not for psychedelic drug use, (*3)

Usage

```PHP $mushroom = new Mushroom\Mushroom();, (*4)

/// With a single bitly link $mushroom->expand('bit.ly/xwzfs'); //// http://www.yourlink.com, (*5)

/// With an array of links $mushroom->expand(['bit.ly/1asdf','goog.it/sdfsd','somefulllink.com/foo']); /// array http://somebitlylink.com, http://somegooglelink.com, http://somefulllink.com/foo, (*6)

// Find the canonical url of some link (or set of links) $mushroom->canonical('http://yourlink.com?utm_param=mushroom'); // http://www.yourlink.com, (*7)

```, (*8)

Installation

Use composer, (*9)

composer require willwashburn/mushroom, (*10)

Alternatively, add "willwashburn/mushroom": "~2.11" to your composer.json, (*11)

Change Log

  • v2.11.0 - Expose HttpStatusCode for urls when searching canonically
  • v2.10.0 - Add method to add a domain to JS Redirect Domains array
  • v2.9.1 - Fix bug where some html sources were not cached
  • v2.9.0 - Expose HTML for urls when searching canonically
  • v2.8.0 - Only follow JS redirects for whitelisted domains
  • v2.7.0 - Follow some JS redirects
  • v2.6.0 - Add default timeout to curl options
  • v2.5.1 - Add spoofed browser headers to default curl opts
  • v2.5.0 - Ensure that http-refresh redirects have host and scheme
  • v2.4.0 - Follow http-refresh html meta tags
  • v2.3.0 - Ensure that canonical urls have a host
  • v2.2.0 - Ensure that canonical urls have a scheme
  • v2.1.1 - Remove CURLOPT_NOBODY from defaults
  • v2.1.0 - Allow setting curl handle options; set user agent as default
  • v2.0.0 - Stop removing slashes from the end of urls
  • v1.1.0 - Add ability to find canonical url from tags in body of returned page
  • v1.0.0 - Expand multiple links using multi_curl_* for faster responses
  • v0.0.2 - Basic link expanding using curl
  • v0.0.1 - Basic link expanding using "get_headers"

Future Plans

  • "Polite" mode to use common link shortening services api's to not count expanding in click counts

The Versions

05/07 2018

dev-master

9999999-dev https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

05/07 2018

v2.5.6

2.5.6.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

05/07 2018

v2.6.0

2.6.0.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

05/07 2018

v2.5.1

2.5.1.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

05/07 2018

dev-ensure-host-http-refresh

dev-ensure-host-http-refresh https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

14/05 2018

v2.5.0

2.5.0.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

08/04 2018

v2.4.0

2.4.0.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

07/04 2018

dev-retry-canonicals

dev-retry-canonicals https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

16/08 2016

v2.3.0

2.3.0.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

18/04 2016

v2.2

2.2.0.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

09/04 2016

v2.1.1

2.1.1.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

09/04 2016

v2.1.0

2.1.0.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

07/04 2016

v2.0.0

2.0.0.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

12/03 2016

v1.1.0

1.1.0.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link resolver bitly resolve expand unshorten expand link unshorten link expand bitly expand url unshorten url resolve url

04/03 2016

v1.0

1.0.0.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

 

The Development Requires

url link bitly expand unshorten expand link unshorten link expand bitly expand url unshorten url

16/06 2015

v0.0.2

0.0.2.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

url link bitly expand unshorten expand link unshorten link expand bitly expand url unshorten url

15/06 2015

v0.0.1

0.0.1.0 https://github.com/willwashburn/mushroom

expand links to their final destination

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

url link bitly expand unshorten expand link unshorten link expand bitly expand url unshorten url