Skip to content

Commit 7a745b2

Browse files
author
Jakub Stawowy
committed
composer update
1 parent 2b36a41 commit 7a745b2

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
php-simple-html-dom-parser
22
==========================
33

4-
Version 1.7 - PHP 7.3 campatible
4+
Version 1.7.1 - PHP 7.3 campatible
55
Changelog: https://sourceforge.net/projects/simplehtmldom/files/simplehtmldom/1.7/
66

77

88
Install
99
-------
1010

1111
```
12-
composer require Kub-AT/php-simple-html-dom-parser
12+
composer require kub-at/php-simple-html-dom-parser
1313
```
1414

1515
Usage

composer.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
"php": ">=5.3.2"
2020
},
2121
"autoload": {
22-
"psr-0": {
23-
"KubAT\\PhpSimple\\HtmlDomParser": "src/"
24-
},
25-
"files": [
26-
"src/simple_html_dom.php"
27-
]
22+
"psr-0": { "KubAT\\PhpSimple\\HtmlDomParser": "src/" }
2823
}
2924
}

src/KubAT/PhpSimple/HtmlDomParser.php

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
namespace KubAT\PhpSimple;
3+
4+
require 'lib'.DIRECTORY_SEPARATOR.'simple_html_dom.php';
5+
6+
7+
class HtmlDomParser {
8+
9+
static public function file_get_html() {
10+
return call_user_func_array('\simple_html_dom\file_get_html' , func_get_args());
11+
}
12+
13+
static public function str_get_html() {
14+
return call_user_func_array('\simple_html_dom\str_get_html' , func_get_args());
15+
}
16+
}

src/simple_html_dom.php src/KubAT/PhpSimple/lib/simple_html_dom.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace KubAT\PhpSimple\HtmlDomParser;
2+
namespace simple_html_dom;
33

44
/**
55
* Website: http://sourceforge.net/projects/simplehtmldom/

0 commit comments

Comments
 (0)