PHPackages                             felipe1234-dev/php-dom-query - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. felipe1234-dev/php-dom-query

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

felipe1234-dev/php-dom-query
============================

Easy-to-learn php dom parser with CSS selector and short codes

v1.0(5y ago)523MITPHP

Since Dec 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/felipe1234-dev/jquery-like-php-dom)[ Packagist](https://packagist.org/packages/felipe1234-dev/php-dom-query)[ RSS](/packages/felipe1234-dev-php-dom-query/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

jQuery-like PHP DOM
===================

[](#jquery-like-php-dom)

> Easy-to-learn php dom parser with CSS selector, short codes and ability to manipulate text nodes

[![GitHub issues](https://camo.githubusercontent.com/43cff63f98ecedc218cd1b910aebd6d6f37fb3d5a10bcb7395b3ef6ba9787598/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f66656c697065313233342d6465762f73696d706c652d7068702d646f6d2d7175657279)](https://github.com/felipe1234-dev/jquery-like-php-dom/issues)[![GitHub forks](https://camo.githubusercontent.com/735a0507fb7ad095dfdb72a6449b293f79e8a316f1afe525ce949df53f3d921f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f66656c697065313233342d6465762f73696d706c652d7068702d646f6d2d7175657279)](https://github.com/felipe1234-dev/jquery-like-php-dom/network)[![GitHub stars](https://camo.githubusercontent.com/675d276828177a4e0ff5b44735bc8c738a861dc400f40f2807cacb44e580cc77/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f66656c697065313233342d6465762f73696d706c652d7068702d646f6d2d7175657279)](https://github.com/felipe1234-dev/jquery-like-php-dom/stargazers)[![GitHub license](https://camo.githubusercontent.com/02555e5ed98e226b142bd2ec824bccbb0cc36d28fcf4a11bc49d0886abb36b00/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f66656c697065313233342d6465762f73696d706c652d7068702d646f6d2d7175657279)](https://github.com/felipe1234-dev/jquery-like-php-dom/blob/main/LICENSE)

Simple PHP Dom Query interface simplification over native PHP Dom Document, which tries to look like closely to jQuery to look friendly to front-end developers. In this library, most of the main functions in jQuery and jQuery-like PHP DOM look exactly like behavior and syntax. This library was done for training purposes.

Installation
------------

[](#installation)

**Composer**

```
composer require felipe1234-dev/php-dom-query

```

**Git**

```
git clone git://git.code.sf.net/p/jquery-like-php-dom/repository jquery-like-php-dom

```

jQuery-like PHP DOM vs jQuery comparison
----------------------------------------

[](#jquery-like-php-dom-vs-jquery-comparison)

  **Wrapping elements** jQuery

```

$(document).ready(function(){
   $("img").wrap("");
});

```

jQuery-like PHP DOM

```

```

  **Appending html** jQuery

```

$(document).ready(function(){
  $("ol").append("Appended item");
});

```

jQuery-like PHP DOM

```
include "path/webparser.php";
$doc = new WebParser();
$doc->loadHTMLFile($url);

$doc->Q("ol")->append("Appended item");

$doc->output();
```

  **Changing first &lt;a&gt; href** jQuery

```

$(document).ready(function(){
  $("a:first").href("folder/index.html");
});

```

jQuery-like PHP DOM

```
include "path/webparser.php";
$doc = new WebParser();
$doc->loadHTMLFile($url);

$doc->Q("a:first")->href("folder/index.html");

$doc->output();
```

*For more examples and usage, please refer to the installation folder under [`manual`](manual/start.md).*

Release History
---------------

[](#release-history)

- v1.0
    - CHANGE: Initial release ready to be used

Meta
----

[](#meta)

Felipe Alves –

Distributed under the MIT license. See `LICENSE` for more information.

[https://github.com/felipe1234-dev/github-link](https://github.com/felipe1234-dev/)

Contributing
------------

[](#contributing)

1. Fork it ()
2. Create your feature branch (`git checkout -b feature/jquery-like-php-dom`)
3. Commit your changes (`git commit -am 'Add some description'`)
4. Push to the branch (`git push origin feature/jquery-like-php-dom`)
5. Create a new Pull Request

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1975d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4807cacc93d47f80c61f202314717ac9034c4c4ab0c09de741d0174d8282f756?d=identicon)[felipe1234-dev](/maintainers/felipe1234-dev)

---

Top Contributors

[![felipe1234-dev](https://avatars.githubusercontent.com/u/61811978?v=4)](https://github.com/felipe1234-dev "felipe1234-dev (115 commits)")

---

Tags

easy-peasyeasy-to-usemanipulationparserparser-pluginphp-domphp-dom-queryphp-frameworkphp7web-parserweb-parserswebscraping

### Embed Badge

![Health badge](/badges/felipe1234-dev-php-dom-query/health.svg)

```
[![Health](https://phpackages.com/badges/felipe1234-dev-php-dom-query/health.svg)](https://phpackages.com/packages/felipe1234-dev-php-dom-query)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
