定制 ahfeel/php-query 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ahfeel/php-query

Composer 安装命令:

composer require ahfeel/php-query

包简介

A composer wrapper for the phpQuery package

README 文档

README


composer require 'somesh/php-query'

or add 'somesh/php-query' as a dependency in composer.json

I added a composer.json and autoloaded the php file so that it can be setup using composer directly. This doesn't use psr-0 autoloading

Using phpQuery

 $doc = phpQuery::newDocumentHTML($markup); 
 $doc = phpQuery::newDocumentXML();
 $doc = phpQuery::newDocumentFileXHTML('test.html'); 
 $doc = phpQuery::newDocumentFilePHP('test.php'); 
 $doc = phpQuery::newDocument('test.xml', 'application/rss+xml'); 
 $doc = phpQuery::newDocument('<div/>');
//Manipulating
$doc['ul > li'] ->addClass('my-new-class') 
//For more information about usage, visit the code.google.com/p/phpquery pahe

Description from https://github.com/punkave/phpQuery

This is phpQuery, a PHP port of jQuery selectors, super useful for DOM traversal and functional testing.

It is originally by Tobiasz Cudnik:

http://code.google.com/p/phpquery/

And was released under the MIT license.

We've cloned it into github because no issues have been fixed upstream in the last two years and we needed to fix a bug relating to the serialize() method to get our functional tests to work. You can find our github repository here:

https://github.com/punkave/phpQuery

"What did you fix?"

Our initial commit includes a fix for the serialize() method, crucial to do form submissions (a big deal for functional testing). See the commit history in github for any later changes.

  • P'unk Avenue

统计信息

  • 总下载量: 45.16k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固