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

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

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

cucxabeng/simple-html-dom

Composer 安装命令:

composer require cucxabeng/simple-html-dom

包简介

SimpleHtmlDom for Laravel 5

README 文档

README

Add library Simple html dom to Laravel 5. More document: http://simplehtmldom.sourceforge.net/

Installation

Add the following line to the require section of composer.json:

{
    "require": {
        "cucxabeng/simple-html-dom": "dev-master"
    }
}

Laravel Setup

Add the service provider to config/app.php:

'providers' => array(
    ...
	'cucxabeng\HtmlDom\HtmlDomServiceProvider',
	
	//Laravel 5.1
	'cucxabeng\HtmlDom\HtmlDomServiceProvider::class',
    ...

Add alias to config/app.php:

'aliases' => array(	
    ...
	'HtmlDom' => 'cucxabeng\HtmlDom\HtmlDom',
	
	//Laravel 5.1
	'HtmlDom' => 'cucxabeng\HtmlDom\HtmlDom::class',
    ...

Usage

$dom = new HtmlDom('http://www.example.com');
//or
$dom = new HtmlDom('<p>Hello</p>');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-01-01