2017 © Pedro Peláez
 

library simple-html-parser-php

Simple HTML parser for PHP

image

sachinsinghshekhawat/simple-html-parser-php

Simple HTML parser for PHP

  • Sunday, February 11, 2018
  • by sachinsinghshekhawat
  • Repository
  • 0 Watchers
  • 1 Stars
  • 11 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 10 % Grown

The README.md

simple-html-dom-parser-php

Version 1.1.5, (*1)

Supports PHP >=5.6.32 Adaptation for Composer and PSR-0 of: Its a HTML dom parser for PHP, you can either process a URL or HTML string, given function will return a DOM object, which can be used for further processing., (*2)

To get DOM object from a URL, use function file_get_html():, (*3)

    $dom = HTMLParser::file_get_html("https://google.com");

To get DOM object from a string, use function str_get_html():, (*4)

    $dom = HTMLParser::str_get_html("<html><head></head><body></body></html>");

Install

composer require sachinsinghshekhawat/simple-html-parser-php 1.1.5, (*5)

Run "composer require sachinsinghshekhawat/simple-html-parser-php 1.1.5" in your project and ready to go. You can replace last argument with any of the version available., (*6)

Usage

<?php

    use sachinsinghshekhawat\SimpleHTMLDomParserPHP\HTMLParser;
    require 'vendor/autoload.php'; //change path of your vendor autload file

    $dom = HTMLParser::file_get_html("https://google.com");

    foreach($dom->find('img') as $element) 
       echo $element->src . '<br>';

For more documentations: http://simplehtmldom.sourceforge.net/, (*7)

The Versions

11/02 2018

dev-master

9999999-dev

Simple HTML parser for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.32

 

by Sachin Singh Shekhawat

parser php html dom

11/02 2018

1.1.5

1.1.5.0

Simple HTML parser for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.32

 

by Sachin Singh Shekhawat

parser php html dom

10/02 2018

1.1.4

1.1.4.0

Simple HTML parser for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.32

 

by Sachin Singh Shekhawat

parser php html dom

10/02 2018

1.1.3

1.1.3.0

Simple HTML parser for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.32

 

by Sachin Singh Shekhawat

parser php html dom

10/02 2018

1.1.2

1.1.2.0

Simple HTML parser for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.32

 

by Sachin Singh Shekhawat

parser php html dom

10/02 2018

1.1.1

1.1.1.0

Simple HTML parser for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.32

 

by Sachin Singh Shekhawat

parser php html dom

10/02 2018

1.1

1.1.0.0

Simple HTML parser for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.32

 

by Sachin Singh Shekhawat

parser php html dom

10/02 2018

1.0

1.0.0.0

Simple HTML parser for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.32

 

by Sachin Singh Shekhawat

parser php html dom

10/02 2018

dev-init_version

dev-init_version

Simple HTML parser for PHP

  Sources   Download

The Requires

  • php >=5.6.32

 

by Sachin Singh Shekhawat

parser php html dom