PHP Classes

PHP URL Extractor: Extract URLs of images and metadata from Web pages

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 426 All time: 6,351 This week: 524Up
Version License PHP version Categories
url-extractor 1.0.1GNU General Publi...5PHP 5, Web services
Description 

Author

This class can extract URLs of images and metadata from Web pages.

It can take the URL of a given remote page and retrieve it to parse the HTML.

The class can extract the URLs of images and metadata information like the page title, keywords, description, etc..

Picture of João Ribeiro
  Performance   Level  

 

Example

<?php

require_once '../src/UrlExtractor/UrlExtractor.php';

$urlExtractor = new \rollbackpt\UrlExtractor\UrlExtractor();
$metaTags = $urlExtractor->extractAll("https://github.com/rollbackpt", false);
echo
"<h2>Meta tags from -> https://github.com/rollbackpt</h2>";
echo
"<pre>";
var_dump($metaTags);
echo
"</pre>";

// Or using composer autoload...
// Install using: composer require rollbackpt/url-extractor

// require __DIR__ . "/../vendor/autoload.php";
//
// use rollbackpt\UrlExtractor\UrlExtractor;
//
// $urlExtractor = new UrlExtractor();
// $metaTags = $urlExtractor->extractAll("https://github.com/rollbackpt", false);
// echo "<h2>Meta tags from -> https://github.com/rollbackpt</h2>";
// echo "<pre>";
// var_dump($metaTags);
// echo "</pre>";


Details

URLExtractor v1.0.0

travis-build

PHP Class to extract images and meta data information from URLs

Usage

With composer:

composer require rollbackpt/url-extractor

... or manually:

require_once 'src/UrlExtractor/UrlExtractor.php';
$urlExtractor = new \rollbackpt\UrlExtractor\UrlExtractor();
echo $urlExtractor->extractAll("http://some-url.com");

Demo Screenshots

Test the demo here: http://urlextractor.joaoperibeiro.com/demo/index.html

urlextractor1 urlextractor2 urlextractor3

About the author - Email: joaopedrocr@gmail.com - Blog: http://joaoperibeiro.com - Personal Page: http://joaopcribeiro.branded.me


  Files folder image Files (67)  
File Role Description
Files folder imagedemo (3 files, 1 directory)
Files folder imagedocs (2 files, 9 directories)
Files folder imagesrc (1 directory)
Files folder imagetests (1 file, 1 directory)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:426
This week:0
All time:6,351
This week:524Up