Skip to content

cagartner/phpquery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Revisiting PhpQuery

Build Status

Basic usage of this fork

// This gives you the phpQuery object as normally used.
use PhpQuery\PhpQuery as phpQuery;

// This creates the pq() function in your namespace.
PhpQuery::use_function(__NAMESPACE__);

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

About this fork

This fork includes several modernizations:

  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

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.

Very Similar Project

See QueryPath for a more active project that also works to replicate the jQuery syntax for PHP.

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.

About

A namespaced fork of phpQuery.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 93.4%
  • HTML 3.5%
  • JavaScript 2.1%
  • CSS 1.0%