Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Zend Dom Query without Zend FW?

Is it possible to use Zend Dom Query without Zend Framework?

If yes: Where to download Zend Dom Query and how to use it without Zend Framework?

like image 672
Mirgorod Avatar asked Jan 21 '23 10:01

Mirgorod


2 Answers

You can pull out the separate ZF files using some package managers like this one, which will tell what files do you need and will compress them for you. Zend_Dom_Query requires only

  • Zend/Dom/Query.php
  • Zend/Dom/Query/Css2Xpath.php
  • Zend/Dom/Query/Result.php
  • Zend/Dom/Exception.php
  • Zend/Exception.php

Anyhow, it's available for download. If there is an urgent need - there are lot of other tools like this one not only for ZF.

like image 143
nefo_x Avatar answered Jan 29 '23 16:01

nefo_x


The classes in Zend are not meant to be used standalone - is there a reason you cannot have the whole of ZF available but only use Zend_Dom_Query?

Failing that you can get the folder

/library/Dom/

And take it out of the ZF folder, you'll then need to look for any depenancies, having a quick look you will also need:

/library/Exception/Exception.php

Give that a go, let us know how it goes....

like image 44
Jake N Avatar answered Jan 29 '23 16:01

Jake N