2017 © Pedro Peláez
 

library firstimg

Get the first image from a web page

image

matula/firstimg

Get the first image from a web page

  • Monday, August 4, 2014
  • by matula
  • Repository
  • 0 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

# First Image

Simple library that returns the first image on a web page. Though, only if it's in an <img> tag., (*1)

Installation

Add to your composer.json file, (*2)

"matula/firstimg": "dev-master"

Usage

$url = 'http://google.com';
$image = new Matula\Firstimg\Firstimg($url);
echo $image->downloadImage();

This will find the first image on the page and download it. Currently, it also resizes the image to 100px., (*3)

TODO

  • better documentation
  • customize the image's filename/extension
  • customize image resizing, or disable
  • better formatting, etc

The Versions

04/08 2014

dev-master

9999999-dev

Get the first image from a web page

  Sources   Download

The Requires

 

The Development Requires

04/08 2014

v1.0.0

1.0.0.0

Get the first image from a web page

  Sources   Download

The Requires

 

The Development Requires