A Website parser class to extract links and images from Web pages. View Demo or Try it out and Rate on phpclasses.org
include 'website_parser.php';
//Instance of WebsiteParser
$parser = new WebsiteParser('http://morshed-alam.com/');
//Get all hyper links
$links = $parser->getHrefLinks();
//Get all image sources
$images = $parser->getImageSources();
//Get all meta tags and Facebook open graph properties
$meta_tags = $parser->getMetaTags();
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request