Skip to content

Commit

Permalink
feat: 新增 Simple Html Dom Parser 套件
Browse files Browse the repository at this point in the history
因為 php-simple-html-dom-parser 只支援到 PHP5.6,
若要在 PHP7 使用這個套件,必須動點手腳。
所以將這個客製化的 php-simple-html-dom-parser 納入 Src 目錄,而非 Vendor 目錄

修改 for PHP7.1 部分可參考:
sunra/php-simple-html-dom-parser#59

因應 php-simple-html-dom-parser 被納入 Src 目錄,變更 Namespace:

原本「Sunra\PhpSimple」變更為「Src\Sunra\PhpSimple」
  • Loading branch information
wade committed Jul 22, 2018
1 parent 22bfb6d commit 20a60b6
Showing 6 changed files with 3,290 additions and 4 deletions.
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"require": {
"fabpot/goutte": "^3.2"
"fabpot/goutte": "^3.2",
"sunra/php-simple-html-dom-parser": "^1.5"
},
"autoload": {
"psr-4": {
"Src\\": "src"
}
},
"require-dev": {
"phpunit/phpunit": "^7"
}
}
Loading

0 comments on commit 20a60b6

Please sign in to comment.