定制 armagedon007/phpquery-yii2 二次开发

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

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

armagedon007/phpquery-yii2

最新稳定版本:v0.9.6

Composer 安装命令:

composer require armagedon007/phpquery-yii2

包简介

phpQuery is a PHP library that enables you to parse HTML and manipulate the DOM using jQuery-like syntax. This repository aims to create a PHP 8.x ready version derived from the original code available in the [Google Code Archive](https://code.google.com/archive/p/phpquery/).

README 文档

README

phpQuery is a PHP library that enables you to parse HTML and manipulate the DOM using jQuery-like syntax. This repository aims to create a PHP 8.x ready version derived from the original code available in the Google Code Archive.

Fork https://github.com/php-query/php-query

License

This project is based on the original code released under the MIT License. See the LICENSE file for more details.

Contribution Guidelines

We welcome and appreciate contributions from the community. If you'd like to contribute, please follow these guidelines:

  • Fork the repository
  • Create a new branch for your feature or bug fix
  • Commit your changes and push your branch to your fork
  • Open a pull request with a clear description of your changes

We appreciate bug reports, feature requests, and any other form of contribution. Your help makes this project better for everyone.

Installation

To use phpQuery in your project, you can install it via Composer:

composer require aramgedon007/phpquery-yii2

Usage

Here's a simple example of how you can use phpQuery in your PHP code:

use phpQuery;

// Create a new phpQuery object
$html = '<div><p>Hello, <span>world!</span></p></div>';
$doc = phpQuery::newDocument($html);

// Manipulate the DOM using jQuery-like syntax
$text = $doc['div p span']->text(); // Retrieve the text content
echo $text; // Output: world!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-12