cagartner/phpquery
Composer 安装命令:
composer require cagartner/phpquery
包简介
PHP5.3+ namespaced version of phpQuery with enhanced CSS support
README 文档
README
Basic usage of this fork
// 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:
- Merged https://github.com/kevee/phpquery/tree/phpquery-css with https://github.com/electrolinux/phpquery
- Removed CSSParser from this repository and included it via composer
- Added PhpQuery\ namespace
- Adjusted the folder structure to reflect usage of PSR-4
- Corrected the unit tests and integrated with travis-ci
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 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.
cagartner/phpquery 适用场景与选型建议
cagartner/phpquery 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 573.37k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2014 年 07 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 cagartner/phpquery 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cagartner/phpquery 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 573.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 25
- 依赖项目数: 13
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-07-18