2017 © Pedro Peláez
 

library phpquery

phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library

image

electrolinux/phpquery

phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library

  • Thursday, March 8, 2018
  • by electrolinux
  • Repository
  • 10 Watchers
  • 132 Stars
  • 491,246 Installations
  • HTML
  • 57 Dependents
  • 0 Suggesters
  • 396 Forks
  • 0 Open issues
  • 2 Versions
  • 10 % Grown

The README.md

phpQuery, one of many forks!

This one is installable via compser:, (*1)

composer require electrolinux/phpquery

Note: I haven't used this package since many years, and just recently looked at the code: this is scary, buggy and unfinished. Please don't use it on any production server!, (*2)

My intent is to have it easily integrated in differents projects, so available on packagist. I've gathered some fix and new features here and there, as will keep looking for new stuff on github about phpQuery, (*3)

github repos i've integrated:

  • https://github.com/ralph-tice/phpquery (one commit: added WebBrowser->browserDownload)
  • https://github.com/aptivate/phpquery (three commits)
  • https://github.com/panrafal/phpquery (remove zend)

github repos i've looked at:

  • https://github.com/denis-isaev/phpquery
  • https://github.com/r-sal/phpquery
  • https://github.com/damien-list/phpquery-1
  • https://github.com/nev3rm0re/phpquery
  • https://github.com/Aurielle/phpquery
  • https://github.com/kevee/phpquery (include php-css-parser)
  • https://github.com/lucassouza1/phpquery

Manual

  • Manual imported from http://code.google.com/p/phpquery/wiki

Extracts from fmorrow README.md:

Whats phpQuery?

To quote the phpQuery (orignally concieved and developed by Tobiasz Cudnik, available on Google Code and Github) project documentation:, (*4)

phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library., (*5)

Library is written in PHP5 and provides additional Command Line Interface (CLI)., (*6)

Example usage

(copied from http://code.google.com/p/phpquery/wiki/Basics), (*7)

Complete working example:, (*8)

html();

// And output the result
echo '

Title:

'; echo '

' . htmlentities( $title) . ', (*9)

'; ?>

====, (*10)

Source for test.html:, (*11)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Hello World!</title>
</head>
<body>
</body>
</html>

The Versions

08/03 2018

dev-master

9999999-dev http://code.google.com/p/phpquery/

phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

21/03 2013

0.9.6

0.9.6.0 http://code.google.com/p/phpquery/

phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library

  Sources   Download

MIT