interface LinkChecker (View source)

Provides an interface for checking that a link is valid

Methods

public
int
checkLink(string $href)

Determine the http status code for a given link

Details

Determine the http status code for a given link

Parameters

string $href

URL to check

Return Value

int

HTTP status code, or null if not checkable (not a link)