承接 mmcnairy/htmlprocessor 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mmcnairy/htmlprocessor

Composer 安装命令:

composer require mmcnairy/htmlprocessor

包简介

Import HTML content and strip divs and attributes

README 文档

README

What is this repository for?

  • Parse HTML, removing divs and attributes passed in as parameters
  • v1.0.0

How do I get set up?

Installation

Install via composer composer require mmcnairy/htmlprocessor

For examples how to use the package look in the examples folder

Dependencies

HtmlProcessor depends on the simple_html_dom and StripAttributes packages. I had trouble finding them so they are included in the package and added to the namespace. There is no need to downloaded them.

Architecture

This package is written using the program to an interface design pattern. Feel free to suggest other libraries to code against to provide the DOM parsing and attribute stripping. I retrofitted the interfaces to require single function already in use by the simple_html_dom and StripAttributes libraries. If there are better or easier libraries it should be very straight-forward to code up new classes to use those.

Examples

There are two examples to show how to use the library. The programmatic.php file shows how to use the library in the background without using a web page. The form.php and process.php show how to use a form to submit data to the API to take in HTML and parse it for specified divs and attributes using the form.

Documentation

API documentation, including the simple_html_dom and StripAttributes classes is included in docs/api directory, generated by phpDocumentor. Thanks guys!

[//]: # (### Contribution guidelines ###)

[//]: # ( Writing tests) [//]: # ( Code review) [//]: # ( Other guidelines)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固