2017 © Pedro Peláez
 

library phpquery

PHP5.3+ namespaced version of phpQuery with enhanced CSS support

image

bscheshir/phpquery

PHP5.3+ namespaced version of phpQuery with enhanced CSS support

  • Friday, October 14, 2016
  • by bscheshir
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,136 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 396 Forks
  • 0 Open issues
  • 5 Versions
  • 2 % Grown

The README.md

Revisiting PhpQuery

Build Status, (*1)

Basic usage of this fork

```` php // This gives you the phpQuery object as normally used. use PhpQuery\PhpQuery as phpQuery;, (*2)

// This creates the pq() function in your namespace. PhpQuery::use_function(NAMESPACE);, (*3)

// This creates the pq() function in the global namespace. PhpQuery::use_function(); ````, (*4)

About this fork

This fork includes several modernizations:, (*5)

  • 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:, (*6)

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

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

Example usage

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

Complete working example:, (*10)

html();

// And output the result
echo '

Title:

'; echo '

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

'; ?>

====, (*12)

Source for test.html:, (*13)

<!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>

======= 1. Merged https://github.com/kevee/phpquery/tree/phpquery-css with https://github.com/electrolinux/phpquery 2. Removed CSSParser from this repository and included it via composer 3. Added PhpQuery\ namespace 4. Adjusted the folder structure to reflect usage of PSR-4 5. Corrected the unit tests and integrated with travis-ci, (*14)

Updated README with project status., (*15)

Beyond these adjustments, this project will be minimally maintained. For more phpQuery usage information and fork history, I highly recommend you review the https://github.com/electrolinux/phpquery README., (*16)

Very Similar Project

See QueryPath for a more active project that also works to replicate the jQuery syntax for PHP., (*17)

My Preferred Alternative

There are several alternatives to phpQuery out there. While several have a healthy adoption rate, I was looking for a library that leveraged SimpleXML and focused on the PHP use case rather than building all of the functionality from scratch and adding unnecessarily methods and selectors simply for jQuery semantic completeness. In the end, I selected to launch a project that attempts to a be a PHP-centric lightweight wrapper for SimpleXML. Learn more about QuipXml., (*18)

The Versions

14/10 2016

dev-master

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

PHP5.3+ namespaced version of phpQuery with enhanced CSS support

  Sources   Download

MIT

The Requires

 

14/10 2016

0.9.8.1

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

PHP5.3+ namespaced version of phpQuery with enhanced CSS support

  Sources   Download

MIT

The Requires

 

11/08 2016

dev-merge

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

PHP5.3+ namespaced version of phpQuery with enhanced CSS support

  Sources   Download

MIT

The Requires

 

18/07 2014

0.9.8

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

PHP5.3+ namespaced version of phpQuery with enhanced CSS support

  Sources   Download

MIT

The Requires

 

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