2017 © Pedro Peláez
 

library php-simple

image

eddieace/php-simple

  • Tuesday, November 7, 2017
  • by eddieace
  • Repository
  • 1 Watchers
  • 5 Stars
  • 1,104 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 29 % Grown

The README.md

php-simple

Version 1.0.4, (*1)

PSR-4 compatible, (*2)

Updated version of the simplehtmldom for php 7.3+., (*3)

http://simplehtmldom.sourceforge.net/, (*4)

Install

composer.phar, (*5)

"require": {
    "eddieace/php-simple": "1.0.*"
    }

composer require, (*6)

    composer require eddieace/php-simple

Usage

use Eddieace\PhpSimple\HtmlDomParser;

...
$dom = HtmlDomParser::str_get_html( $str );
or 
$dom = HtmlDomParser::file_get_html( $file_name );

$elems = $dom->find($elem_name);
...

Example

use Eddieace\PhpSimple\HtmlDomParser;

$html = HtmlDomParser::file_get_html("http://example.com/");
$results = $html->find('h1');
echo $results[0]->plaintext;

//output : Example Domain

The Versions

07/11 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=7.0.0
  • ext-mbstring *

 

by Edvard Åkerberg

07/11 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=7.0.0
  • ext-mbstring *

 

by Edvard Åkerberg