PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   URL Tracker Class   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: URL Tracker Class
Get the URL to where a short URL redirects
Author: By
Last change:
Date: 1 year ago
Size: 763 bytes
 

Contents

Class file image Download

url-tracker

build

Introduction

  • It's for developers to track URL programmatically and avoid faking phishing URL with shorten URL.

Usage

  • Using this library is simple. Firstly, installing the library with following command:
composer require lee/url-tracker

  • Then using the following code to track URL easily:
require_once __DIR__ . '/vendor/autoload.php';

use Lee\Tracker;

$url = 'https://bit.ly/grpc-intro';
$trackedResult = Tracker::trackFromUrl($url); // ['https://bit.ly/grpc-intro', 'https://www.slideshare.net/williamyeh/grpc-238408172/williamyeh/grpc-238408172',]