enemis/simple-html-dom-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

enemis/simple-html-dom-bundle

最新稳定版本:v1.1.0

Composer 安装命令:

composer require enemis/simple-html-dom-bundle

包简介

The maintained version of 'Bundle around Simple HTML DOM library'

README 文档

README

Original package https://github.com/erivello/SimpleHtmlDomBundle was abandoned. This is attempt to giving to good bundle second chance. This bundle provides a simple integration of the Simple HTML DOM Parser into Symfony2|3. ##I will do my best to support and timely update this package to supporting latest Symfony version.

Simple HTML DOM Parser is a HTML DOM parser written in PHP5+ that let you manipulate HTML, find tags on an HTML page with selectors just like jQuery and extract contents from HTML.

Installation

Installation is very easy, it makes use of Composer.

composer require enemis/simple-html-dom-bundle

Register the bundle in app/AppKernel.php:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Enemis\SimpleHtmlDomBundle\ErivelloSimpleHtmlDomBundle(),
    );
}

Usage

You can access the SimpleHtmlDomBundle by the simple_html_dom service:

<?php

$parser = $this->container->get('simple_html_dom');

$parser->load('http://www.google.com/');

// Find all links
foreach($parser->find('a') as $element) {
    echo $element->href . '<br/>';
}

License

The SimpleHtmlDomBundle is licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-03