Skip to content

1.0.0

Choose a tag to compare

@tomaj tomaj released this 22 Nov 12:39
· 57 commits to master since this release

Tagged on 2015-07-28.

Initial release.

Added

  • Scraper::parse($content) extracts page meta information from an HTML string and returns a Meta object.
  • Scraper::parseUrl($url, $timeout = 5) downloads the page with Guzzle 6 (5 second connect timeout) and parses it.
  • Parsed fields: <title>, description, keywords and author meta tags, and the Open Graph properties og:title, og:description, og:type, og:url, og:site_name and og:image (HTML entities are decoded).
  • Requires PHP 5.5 or newer.