Skip to content
forked from punkave/phpQuery

This is phpQuery, a PHP port of jQuery selectors, super useful for DOM traversal and functional testing. Originally by Tobiasz Cudnik, who released it on Google Code. We forked it because we need some bug fixes and no commits have been made upstream for quite some time. Please share your phpQuery fixes with us!

Notifications You must be signed in to change notification settings

johntor/phpQuery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description from https://github.com/punkave/phpQuery This is phpQuery, a PHP port of jQuery selectors, super useful for DOM traversal and functional testing.

It is originally by Tobiasz Cudnik:

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

And was released under the MIT license.

We've cloned it into github because no issues have been fixed upstream in the last two years and we needed to fix a bug relating to the serialize() method to get our functional tests to work. You can find our github repository here:

https://github.com/punkave/phpQuery

"What did you fix?"

Our initial commit includes a fix for the serialize() method, crucial to do form submissions (a big deal for functional testing). See the commit history in github for any later changes.

  • P'unk Avenue

"More fixes updates 2018"

  1. I tried to include all fixes of all brunches until today.
  2. I removed multibyte string Functions.
  3. Included the file jphpQuery.php that can be used alone.
  • Johntor 2018

Using phpQuery

 $doc = phpQuery::newDocumentHTML($markup); 
 $doc = phpQuery::newDocumentXML();
 $doc = phpQuery::newDocumentFileXHTML('test.html'); 
 $doc = phpQuery::newDocumentFilePHP('test.php'); 
 $doc = phpQuery::newDocument('test.xml', 'application/rss+xml'); 
 $doc = phpQuery::newDocument('<div/>');
//Manipulating
$doc['ul > li'] ->addClass('my-new-class') 
//For more information about usage, visit the code.google.com/p/phpquery pahe

About

This is phpQuery, a PHP port of jQuery selectors, super useful for DOM traversal and functional testing. Originally by Tobiasz Cudnik, who released it on Google Code. We forked it because we need some bug fixes and no commits have been made upstream for quite some time. Please share your phpQuery fixes with us!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 57.7%
  • HTML 41.5%
  • Other 0.8%