2017 © Pedro Peláez
 

library element-finder

image

xparse/element-finder

  • Tuesday, June 19, 2018
  • by funivan
  • Repository
  • 3 Watchers
  • 17 Stars
  • 8,930 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 6 Open issues
  • 15 Versions
  • 9 % Grown

The README.md

ElementFinder

Latest Version Software License CI codecov Total Downloads, (*1)

Extract data from html with elegant xpath/css expressions and prepare data with regexp in single line., (*2)

Install

Via Composer, (*3)

``` bash $ composer require xparse/element-finder, (*4)


## Usage ``` php $page = new ElementFinder($html); $title = $page->value('//title')->first(); echo $title;

Advanced usage with regexp

``` php $page = new \Xparse\ElementFinder\ElementFinder(', (*5)

044-12-12, 258-16-16
(148) 04-55-16

');, (*6)

$tels = $page->value('//*[@class="tels"]')->split('!,!')->replace("![^0-9]!"); print_r($tels);, (*7)

/* [0] => 0441212 [1] => 2581616 [2] => 148045516 */, (*8)


## Css selectors Read this document. [Using css selectors](doc/using_css_selectors.md). ## Testing ``` bash ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details., (*9)

Credits

Xpath info

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

19/06 2018
21/08 2017

0.1.0-alpha.7

0.1.0.0-alpha7 https://github.com/xparse/ElementFinder

  Sources   Download

MIT

The Requires

 

The Development Requires

parser dom xpath

16/08 2017

0.1.0-alpha.6

0.1.0.0-alpha6 https://github.com/xparse/ElementFinder

  Sources   Download

MIT

The Requires

 

The Development Requires

parser dom xpath

10/03 2017

0.1.0-alpha.5

0.1.0.0-alpha5 https://github.com/xparse/ElementFinder

  Sources   Download

MIT

The Requires

 

The Development Requires

parser dom xpath

02/06 2016

0.1.0-alpha.3

0.1.0.0-alpha3 https://github.com/xparse/ElementFinder

  Sources   Download

MIT

The Requires

 

The Development Requires

parser dom xpath

25/05 2016

0.1.0-alpha.2

0.1.0.0-alpha2 https://github.com/xparse/ElementFinder

  Sources   Download

MIT

The Requires

 

The Development Requires

parser dom xpath

19/05 2016

0.1.0-alpha1

0.1.0.0-alpha1 https://github.com/xparse/ElementFinder

  Sources   Download

MIT

The Requires

 

The Development Requires

parser dom xpath

21/01 2016
09/12 2015
04/06 2015

0.0.2

0.0.2.0 https://github.com/xparse/ElementFinder

  Sources   Download

MIT

The Requires

 

The Development Requires

parser dom xpath

12/12 2014

0.0.1

0.0.1.0 https://github.com/xparse/element-finder

  Sources   Download

MIT

The Requires

 

The Development Requires

parser dom xpath