2017 © Pedro Peláez
 

library pluck

A simple CSS driven DOMDocument wrapper

image

imarc/pluck

A simple CSS driven DOMDocument wrapper

  • Monday, November 16, 2015
  • by mattsah
  • Repository
  • 24 Watchers
  • 2 Stars
  • 76 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Pluck

A DOM CSS selector engine, (*1)

Installation

Pluck uses Symfony's CSS-Selector for converting CSS selectors to XPath queries. Please ensure you have this package available. If you're using composer your standard composer install should fetch it as a requirement., (*2)

Usage

$html = <<<EOD
<!DOCTYPE html>
<html>
  <body>
        <a class="button" href="#">Hello There</a>
    </body>
</html>
EOD;

$dom = new Pluck\Document($html);
$dom->find('a.button')->remove();

To Do

  • Finish Documentation
  • Write Tests

Credits

  • While this library does not try to mimic jQuery, it will surely always be inspired by it.

The Versions

16/11 2015

dev-master

9999999-dev

A simple CSS driven DOMDocument wrapper

  Sources   Download

MIT

The Requires

 

by Matthew J. Sahagian
by Jeff Turcotte

dom html parser css3 css2