META_PROPERTIES_IMAGE
META_PROPERTIES_IMAGE =array('og:image', 'og:image:url', 'og:image:secure_url', 'twitter:image', 'twitter:image:src', 'lp:image')
The head parser extracts links and meta from HTML responses.
$finder :array<mixed,\DevOwl\FastHtmlTag\finder\AbstractFinder>
See `AbstractFinder`.
addFinder(\DevOwl\FastHtmlTag\finder\AbstractFinder $finder)
Add a finder scheme. See `finder/` for available ones.
\DevOwl\FastHtmlTag\finder\AbstractFinder | $finder |
addSelectorSyntaxFunction(string $functionName,callable $callback)
Add a callable for a Selector Syntax function.
The callback gets the following parameters and expects boolean
as result:
SelectorSyntaxAttributeFunction $function, SelectorSyntaxMatch $match, mixed $value
string | $functionName | |
callable | $callback |
convertUrlToThumbnailFromResponse(string $requestedUrl,string $contentType,string $body): array|false
Pass in some response infos about a requested URL and we will try to detect a thumbnail URL and other infos like title and description for you.
string | $requestedUrl | |
string | $contentType | |
string | $body |