Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiirocks/simple-html-dom
Simple Html Dom Parser for Yii
https://github.com/yiirocks/simple-html-dom
dom extension html-dom-parser html-parser yii yii3
Last synced: 1 day ago
JSON representation
Simple Html Dom Parser for Yii
- Host: GitHub
- URL: https://github.com/yiirocks/simple-html-dom
- Owner: YiiRocks
- License: mit
- Created: 2020-11-25T15:56:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T20:58:37.000Z (almost 2 years ago)
- Last Synced: 2024-12-24T22:10:01.207Z (1 day ago)
- Topics: dom, extension, html-dom-parser, html-parser, yii, yii3
- Language: PHP
- Homepage: https://www.yii.rocks/
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Html Dom Parser for Yii
This extension configures [voku/simple_html_dom](https://github.com/voku/simple_html_dom)
[![Packagist Version](https://img.shields.io/packagist/v/yiirocks/simple-html-dom.svg)](https://packagist.org/packages/yiirocks/simple-html-dom)
[![PHP from Packagist](https://img.shields.io/packagist/php-v/yiirocks/simple-html-dom.svg)](https://php.net/)
[![Packagist](https://img.shields.io/packagist/dt/yiirocks/simple-html-dom.svg)](https://packagist.org/packages/yiirocks/simple-html-dom)
[![GitHub](https://img.shields.io/github/license/yiirocks/simple-html-dom.svg)](https://github.com/yiirocks/simple-html-dom/blob/master/LICENSE)## Installation
The package could be installed via composer:
```bash
composer require yiirocks/simple-html-dom
```## Usage
```php
use YiiRocks\SimpleHtmlDom\SimpleHtmlDomInterface;class Class {
private SimpleHtmlDomInterface $dom;__construct(SimpleHtmlDomInterface $dom) {
$this->dom = $dom;
}
}
```Available options can be found in the [API Readme](https://github.com/voku/simple_html_dom/blob/master/README_API.md).
## Unit testing
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
```bash
./vendor/bin/phpunit
```[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/YiiRocks/simple-html-dom.svg)](https://codeclimate.com/github/YiiRocks/simple-html-dom/maintainability)
[![Codacy branch grade](https://img.shields.io/codacy/grade/b82875701bf54191b7a86069d724f013/master.svg)](https://app.codacy.com/gh/YiiRocks/simple-html-dom)
[![Scrutinizer code quality (GitHub/Bitbucket)](https://img.shields.io/scrutinizer/quality/g/yiirocks/simple-html-dom/master.svg)](https://scrutinizer-ci.com/g/yiirocks/simple-html-dom/?branch=master)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/yiirocks/simple-html-dom/analysis)