HttpTimeProvider

Implements\RobThree\Auth\Providers\Time\ITimeProvider

Takes the time from any webserver by doing a HEAD request on the specified URL and extracting the 'Date:' header

package

Default

Methods

__construct

__construct( $url = 'https://google.com', $expectedtimeformat = 'D, d M Y H:i:s O+',array $options = null)

Arguments

$url

$expectedtimeformat

$options

array

getTime

getTime()

Properties

url

url :

Type(s)

options

options :

Type(s)

expectedtimeformat

expectedtimeformat :

Type(s)