Skip to content
This repository was archived by the owner on Apr 26, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
705c93e
Fix crash when loading a DOMDocument node ($loaded not initialised).
qris Nov 16, 2012
1d1cb89
Removed Zend
panrafal Dec 14, 2012
bb912f6
composer.json
panrafal Dec 14, 2012
b2aa019
added WebBrowser->browserDownload for retrieving response body direct…
Jan 24, 2013
ca72bd3
Add an attrs() method.
qris Feb 1, 2013
4e2e30f
Add a .texts() method like .attrs().
qris Mar 19, 2013
9e3516d
Merge branch 'ralph-tice' into nozend
electrolinux Mar 21, 2013
27ff018
Merge branch 'aptivate' into nozend
electrolinux Mar 21, 2013
6cb8afc
initial package release, version bumped to 0.9.6
electrolinux Mar 21, 2013
2f417c1
fix nth-child implementation
lsowen Oct 6, 2013
3bdceb9
Merge pull request #1 from lsowen/master
electrolinux Oct 12, 2013
e60db4d
syntax fix
Jul 9, 2014
aa09e7a
Merge pull request #2 from urmaul/master
electrolinux Aug 8, 2014
84e2570
Update README.md
Philosoft Dec 30, 2014
9304d8a
Replace deprecated functions split() and join() with explode() and im…
bluehaoran Dec 6, 2015
c2c3ab0
Merge pull request #3 from Philosoft/patch-1
electrolinux Dec 17, 2015
81fe9fc
Merge pull request #4 from bluehaoran/patch-1
electrolinux Dec 17, 2015
c7380d7
Converted google code wiki to markdown
stevecoug Jan 2, 2016
13a34f6
renamed Manual to README, removed test
stevecoug Jan 2, 2016
7aa44be
fixed links back to old google code wiki
stevecoug Jan 2, 2016
3fd928e
added link to manual from main README.md
stevecoug Jan 2, 2016
88995d8
added license information to wiki README.md
stevecoug Jan 2, 2016
8bd206a
Merge pull request #5 from stevecoug/master
electrolinux Jan 20, 2016
6c13c01
Fixed getString(0) and getStrings(0) null check
lauripiisang Jan 27, 2016
41d97a4
Merge pull request #1 from lauripiisang/dev-fixed-getstring
lauripiisang Jan 27, 2016
3a10e8d
Merge pull request #6 from lauripiisang/dev-fixed-getstring
electrolinux Jan 28, 2016
4e27b07
fixed null check
lauripiisang Jan 28, 2016
c084e1b
Merge pull request #8 from lauripiisang/fixed-0index-getString
electrolinux Feb 1, 2016
71a64a3
fixed makeArray()
ywfwj2008 Mar 24, 2016
ec73fc8
fixed bugs
ywfwj2008 Mar 24, 2016
1eb8a9c
Merge pull request #9 from ywfwj2008/fixed-makeArray
electrolinux Mar 24, 2016
196aa28
Merge pull request #10 from ywfwj2008/fixed-bugs
electrolinux Mar 24, 2016
41ecce6
Closes #1. Merged https://github.com/kevee/phpquery/tree/phpquery-css.
stackpr Mar 7, 2014
d8710f7
Updated composer for wittiws repository.
stackpr Mar 7, 2014
117608c
Added the sabberworm/php-css-parser package.
stackpr Mar 7, 2014
9ad9b85
Corrected the existing unit tests (1 was broken).
stackpr Mar 7, 2014
3e28092
Closes #3. Fixes phpQuery to use CSSParser. One unit test.
stackpr Mar 7, 2014
b991bb9
Added autoload file for reference by phpunit.
stackpr Mar 7, 2014
a2a95c2
Configured phpunit to run from the project main directory.
stackpr Mar 7, 2014
52ffc80
Removed api-reference and .idea folder as extras.
stackpr Mar 7, 2014
92357ee
Added extra example.
stackpr Mar 7, 2014
a6744a3
Added travis-ci configuration.
stackpr Mar 7, 2014
c24871a
Updated README to explain the goal of this fork.
stackpr Mar 7, 2014
736c51a
Removed the snapshot of the old CSSParser - it is not in use. #3
stackpr Mar 7, 2014
b288208
Address errors when PHP is in strict mode.
stackpr Mar 7, 2014
6951849
Closes #6. Shift the classes into PHP namespaces.
stackpr Mar 8, 2014
951c310
Closes #8. Remove pq() from the global namespace.
stackpr Mar 9, 2014
2dd92cc
Converted googlecode wiki pages to markedown files.
stackpr Mar 9, 2014
5574822
Correct the conversion of sub-headings when they lack spaces before t…
stackpr Mar 9, 2014
bf9e889
Replaced the prettyprint configuration with php. #9
stackpr Mar 9, 2014
7c6807b
Eliminated the escape of the php dollar-sign. #9
stackpr Mar 9, 2014
65a4163
Translate googlecode URLs to md. #9
stackpr Mar 9, 2014
9ebef0c
Removed empty doc pages. Closes #9.
stackpr Mar 9, 2014
9cfd129
Updated README with project status.
stackpr Mar 13, 2014
ef5f788
Reflected the fork uniqueness in composer description.
stackpr Mar 13, 2014
01e3fe0
Link to QuipXml. [skip ci]
stackpr Mar 26, 2014
463105d
Correctly namespacing issues (mainly on exceptions).
stackpr Apr 11, 2014
e389318
multiple error fixes
miholeus May 23, 2014
5ee02b5
case sensitive dom* objects
miholeus May 29, 2014
5a6489d
[fixed] Переименовываем файлы для корректной работы на *nix-like
vitaliy-evsyukov May 29, 2014
c13257e
name resolve fixes
miholeus Jun 2, 2014
c0b54e8
Linked to QueryPath. [skip ci]
stackpr Jul 10, 2014
c9918f0
Camelcase class name
miholeus Jul 15, 2014
addaee2
map fix function
miholeus Sep 9, 2014
ef38843
fixed domevent error
miholeus Sep 17, 2014
46153d0
Fixed travis-ci image [skip ci]
stackpr Sep 18, 2014
eaadac6
Update composer.json
c-harris Aug 11, 2016
9ef428d
can accessable
bscheshir Oct 14, 2016
2eaff4a
Update .travis.yml
c-harris Oct 24, 2016
01b8aba
Update README.md
c-harris Oct 24, 2016
5744311
Update .travis.yml
c-harris Oct 24, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor/
composer.lock
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

21 changes: 0 additions & 21 deletions .idea/compiler.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/encodings.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

339 changes: 0 additions & 339 deletions .idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

16 changes: 0 additions & 16 deletions .idea/php.xml

This file was deleted.

22 changes: 0 additions & 22 deletions .idea/phpquery-git.iml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/vcs.xml

This file was deleted.

20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: php

php:
- 5.5
- 5.6

before_script:
- composer install
# - wget http://getcomposer.org/composer.phar
# - php composer.phar require satooshi/php-coveralls:dev-master --dev --no-progress --prefer-source

script:
- mkdir -p build/logs
- phpunit --coverage-clover build/logs/clover.xml

after_script:
- php vendor/bin/coveralls --exclude-no-stmt

after_success:
- coveralls
Empty file removed README
Empty file.
117 changes: 117 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# Revisiting PhpQuery

[![Build Status](https://travis-ci.org/c-harris/phpquery.svg?branch=master)](https://travis-ci.org/c-harris/phpquery)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/c-harris/phpquery/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/c-harris/phpquery/?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/c-harris/phpquery/badge.svg?branch=master)](https://coveralls.io/github/c-harris/phpquery?branch=master)

## Basic usage of this fork

```` php
// 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:

* 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](wiki/README.md) 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:

>phpQuery is a server-side, chainable, CSS3 selector driven Document Object Model (DOM) API based on jQuery JavaScript Library.
>
>Library is written in PHP5 and provides additional Command Line Interface (CLI).

### Example usage

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

Complete working example:

```php
<?php
include 'phpQuery-onefile.php';

$file = 'test.html'; // see below for source

// loads the file
// basically think of your php script as a regular HTML page running client side with jQuery. This loads whatever file you want to be the current page
phpQuery::newDocumentFileHTML($file);

// Once the page is loaded, you can then make queries on whatever DOM is loaded.
// This example grabs the title of the currently loaded page.
$titleElement = pq('title'); // in jQuery, this would return a jQuery object. I'm guessing something similar is happening here with pq.

// You can then use any of the functionality available to that pq object. Such as getting the innerHTML like I do here.
$title = $titleElement->html();

// And output the result
echo '<h2>Title:</h2>';
echo '<p>' . htmlentities( $title) . '</p>';

?>
```

====

Source for test.html:

```html
<!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
>>>>>>> Updated README with project status.

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](https://github.com/technosophos/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.](https://github.com/wittiws/quipxml)
91 changes: 0 additions & 91 deletions api-reference/classtrees_phpQuery.html

This file was deleted.

Loading