Login   Register  
PHP Classes

CSS Query: Get elements from an HTML page using CSS selectors

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Sam Shull
Name: Sam Shull <contact>
Classes: 9 packages by
Country: United States United States
Age: 38
All time rank: 37242 in United States United States
Week rank: 592 Down61 in United States United States Down
Innovation award
Innovation award
Nominee: 8x

  Detailed description   Download Download .zip .tar.gz  
This class can be used to get elements from an HTML document using CSS selectors similar to Xpath.

It can load an HTML document and perform queries for elements using CSS selectors as query parameters. The search may be applied to the whole document or just to a list of document elements.

The class returns an array of document elements as DOMNode objects that match the query.

  Classes of Sam Shull  >  CSS Query  >  Download Download .zip .tar.gz  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: CSS Query
Base name: cssquery
Description: Get elements from an HTML page using CSS selectors
Version: 1.0
PHP version: 5.0
License: MIT/X Consortium License
All time users: 1332 users
All time rank: 2670
Week users: 0 users
Week rank: 1372 Equal
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image HTML HTML generation and processing View top rated classes
Group folder image XML XML parsing and generation View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes

  Innovation Award  
PHP Programming Innovation award nominee
June 2009
Number 2

Prize: One subscription to the PDF edition of the PHP Architect magazine
CSS is a standard that allows you to assign style properties to elements in a page that match a given selector path to match elements by class or identifier.

This class provides a solution to search and extract page elements using the CSS selector path specification.

Manuel Lemos

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file CSSQuery_test.php Example An example of many selector uses
Accessible without login Plain text file CSSQuery.php Class The class file

Download Download all files: cssquery.tar.gz cssquery.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.