{"id":22617521,"url":"https://github.com/simplehtmldom/simplehtmldom","last_synced_at":"2025-04-13T04:59:09.650Z","repository":{"id":44098117,"uuid":"184097643","full_name":"simplehtmldom/simplehtmldom","owner":"simplehtmldom","description":"This is a mirror of the Simple HTML DOM Parser at","archived":false,"fork":false,"pushed_at":"2023-02-22T22:28:12.000Z","size":1355,"stargazers_count":186,"open_issues_count":3,"forks_count":54,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-13T04:59:04.954Z","etag":null,"topics":["dom","html","mirror","parser","php"],"latest_commit_sha":null,"homepage":"https://sourceforge.net/projects/simplehtmldom/","language":"HTML","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplehtmldom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-29T15:34:11.000Z","updated_at":"2025-01-29T09:00:03.000Z","dependencies_parsed_at":"2024-06-18T12:14:39.769Z","dependency_job_id":"a44aad8d-0d9b-497c-973d-695c8c4ffb51","html_url":"https://github.com/simplehtmldom/simplehtmldom","commit_stats":{"total_commits":481,"total_committers":3,"mean_commits":"160.33333333333334","dds":"0.35343035343035345","last_synced_commit":"b8d048e46b7f1964c28ea041d39ccb1d05f9a0ed"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplehtmldom%2Fsimplehtmldom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplehtmldom%2Fsimplehtmldom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplehtmldom%2Fsimplehtmldom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplehtmldom%2Fsimplehtmldom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplehtmldom","download_url":"https://codeload.github.com/simplehtmldom/simplehtmldom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665759,"owners_count":21142123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dom","html","mirror","parser","php"],"created_at":"2024-12-08T20:06:44.906Z","updated_at":"2025-04-13T04:59:09.624Z","avatar_url":"https://github.com/simplehtmldom.png","language":"HTML","readme":"# PHP Simple HTML DOM Parser\n\n[![LICENSE](https://img.shields.io/github/license/simplehtmldom/simplehtmldom?logo=github\u0026style=for-the-badge)](https://github.com/simplehtmldom/simplehtmldom/blob/master/LICENSE)\n[![RELEASE](https://img.shields.io/github/v/tag/simplehtmldom/simplehtmldom?label=release\u0026logo=sourceforge\u0026style=for-the-badge)](https://sourceforge.com/projects/simplehtmldom/files/simplehtmldom/)\n[![BASIC TESTS](https://img.shields.io/github/workflow/status/simplehtmldom/simplehtmldom/Basic%20Tests?label=Basic%20Tests\u0026logo=github\u0026style=for-the-badge)](https://github.com/simplehtmldom/simplehtmldom/actions/workflows/basic_tests.yml)\n[![PACKAGIST](https://img.shields.io/packagist/v/simplehtmldom/simplehtmldom?logo=composer\u0026style=for-the-badge)](https://packagist.org/packages/simplehtmldom/simplehtmldom)\n\nsimplehtmldom is a fast and reliable HTML DOM parser for PHP.\n\n## Key features\n\n* Purely PHP-based DOM parser (no XML extensions required).\n* Works with well-formed and broken HTML documents.\n* Loads webpages, local files and document strings.\n* Supports CSS selectors.\n\n## Requirements\n\nsimplehtmldom requires **PHP 5.6 or higher** with [ext-iconv](https://www.php.net/manual/en/book.iconv.php) enabled. Following extensions enable additional features of the parser:\n\n* [ext-mbstring](https://secure.php.net/manual/en/book.mbstring.php) (recommended) \\\nEnables better detection for multi-byte documents.\n* [ext-curl](https://secure.php.net/manual/en/book.curl.php) \\\nEnables cURL support for the class `HtmlWeb`.\n* [ext-openssl](https://secure.php.net/manual/en/book.openssl.php) (recommended when using cURL) \\\nEnables SSL support for cURL.\n\n## Installation\n\n**Manually**:\n\nDownload the latest release from [SourceForge](https://sourceforge.net/projects/simplehtmldom/files/latest) and extract the files in the vendor folder of your project.\n\n**Composer**:\n\n```sh\ncomposer require simplehtmldom/simplehtmldom\n```\n\n**Git**:\n\n```\ngit clone git://git.code.sf.net/p/simplehtmldom/repository simplehtmldom\n```\n\n_Note_: The [GitHub repository](https://github.com/simplehtmldom/simplehtmldom) serves as a mirror for the SourceForge project. We currently accept pull requests and issues only via SourceForge.\n\n## Usage\n\nThis example illustrates how to return the page title:\n\n\u003cdetails\u003e\u003csummary\u003eManually\u003c/summary\u003e\n\n```\n\u003c?php\ninclude_once 'HtmlWeb.php';\nuse simplehtmldom\\HtmlWeb;\n\n$client = new HtmlWeb();\n$html = $client-\u003eload('https://www.google.com/search?q=simplehtmldom');\n\n// Returns the page title\necho $html-\u003efind('title', 0)-\u003eplaintext . PHP_EOL;\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eUsing composer\u003c/summary\u003e\n\n```\n\u003c?php\ninclude_once 'vendor/autoload.php';\nuse simplehtmldom\\HtmlWeb;\n\n$client = new HtmlWeb();\n$html = $client-\u003eload('https://www.google.com/search?q=simplehtmldom');\n\n// Returns the page title\necho $html-\u003efind('title', 0)-\u003eplaintext . PHP_EOL;\n```\n\n\u003c/details\u003e\n\nFind more examples in the installation folder under `examples`.\n\n## Documentation\n\nThe documentation for this library is hosted at [https://simplehtmldom.sourceforge.io/docs/](https://simplehtmldom.sourceforge.io/docs/)\n\n## Getting involved\n\nThere are various ways for you to get involved with simplehtmldom. Here are a few:\n\n* Share this project with your friends (Twitter, Facebook, ..._you name it_...).\n* Report [bugs](https://sourceforge.net/p/simplehtmldom/bugs/) (SourceForge).\n* Request [features](https://sourceforge.net/p/simplehtmldom/feature-requests/) (SourceForge).\n* Discuss existing bugs, features and ideas.\n\nIf you want to contribute code to the project, please open a [feature request](https://sourceforge.net/p/simplehtmldom/feature-requests/) and include your patch with the message.\n\n## Authors\n\n * [S.C. Chen](https://sourceforge.net/u/me578022/)\n * [John Schlick](https://sourceforge.net/u/john_schlick/)\n * [logmanoriginal](https://sourceforge.net/u/logmanoriginal/)\n * Rus Carroll\n * Yousuke Kumakura\n * Vadim Voituk\n\n## License\n\nThe source code for simplehtmldom is licensed under the MIT license. For further information read the LICENSE file in the root directory (should be located next to this README file).\n\n## Technical notes\n\nsimplehtmldom is a purely PHP-based DOM parser that doesn't rely on external libraries like [libxml](https://www.php.net/manual/en/book.libxml.php), [SimpleXML](https://www.php.net/manual/en/book.simplexml.php) or [PHP DOM](https://www.php.net/manual/en/book.dom.php). Doing so provides better control over the parsing algorithm and a much simpler API that even novice users can learn to use in a short amount of time.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplehtmldom%2Fsimplehtmldom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplehtmldom%2Fsimplehtmldom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplehtmldom%2Fsimplehtmldom/lists"}