PHPackages                             itx-utilities/dom-fetcher - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. itx-utilities/dom-fetcher

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

itx-utilities/dom-fetcher
=========================

a php package for fetching dom using xpath

v1.0.0(5y ago)0131MITPHPPHP &gt;=7.0.0

Since Sep 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/itxphp/dom-fetcher)[ Packagist](https://packagist.org/packages/itx-utilities/dom-fetcher)[ RSS](/packages/itx-utilities-dom-fetcher/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (1)

DomFetcher
==========

[](#domfetcher)

is Xpath on steroids , it makes element selection much easier .

to select an element using class attribute \[text case sensitive\]

//h1\[@class='firstHeading'\] ;

for case insensitive

//h1\[@class=i'firstheading'\] ;

to select using only part of word

//h1\[@class\*=i'firstheadi'\] ;

to select element starts with part of word

//h1\[@class^=i'first'\] ;

to select element ends with part of word

//h1\[@class$=i'first'\] ;

to search for element doesn't contain word

//h1\[@class!='firstHeading'\] ;

```
