{"id":37012882,"url":"https://github.com/sachinsinghshekhawat/simple-html-dom-parser-php","last_synced_at":"2026-01-14T01:14:59.513Z","repository":{"id":62538921,"uuid":"121018926","full_name":"sachinsinghshekhawat/simple-html-dom-parser-php","owner":"sachinsinghshekhawat","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-11T15:31:47.000Z","size":228,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-24T23:34:17.950Z","etag":null,"topics":["html","parser","php"],"latest_commit_sha":null,"homepage":"https://sachinsingh.me","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sachinsinghshekhawat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-10T13:44:57.000Z","updated_at":"2018-06-29T19:26:33.000Z","dependencies_parsed_at":"2022-11-02T15:30:33.355Z","dependency_job_id":null,"html_url":"https://github.com/sachinsinghshekhawat/simple-html-dom-parser-php","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sachinsinghshekhawat/simple-html-dom-parser-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinsinghshekhawat%2Fsimple-html-dom-parser-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinsinghshekhawat%2Fsimple-html-dom-parser-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinsinghshekhawat%2Fsimple-html-dom-parser-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinsinghshekhawat%2Fsimple-html-dom-parser-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sachinsinghshekhawat","download_url":"https://codeload.github.com/sachinsinghshekhawat/simple-html-dom-parser-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachinsinghshekhawat%2Fsimple-html-dom-parser-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["html","parser","php"],"created_at":"2026-01-14T01:14:58.985Z","updated_at":"2026-01-14T01:14:59.502Z","avatar_url":"https://github.com/sachinsinghshekhawat.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nsimple-html-dom-parser-php\n---------------------------\n\nVersion 1.1.5\n\nSupports PHP \u003e=5.6.32\nAdaptation for Composer and PSR-0 of:\nIts a HTML dom parser for PHP, you can either process a URL or HTML string, given function will return a DOM object, \nwhich can be used for further processing.\n\nTo get DOM object from a URL, use function file_get_html():\n```\n\t$dom = HTMLParser::file_get_html(\"https://google.com\");\n```\nTo get DOM object from a string, use function str_get_html():\n```\n\t$dom = HTMLParser::str_get_html(\"\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003e\u003c/body\u003e\u003c/html\u003e\");\n```\t\n\t\nInstall\n----------------------------------\n\ncomposer require sachinsinghshekhawat/simple-html-parser-php 1.1.5\n\nRun \"composer require sachinsinghshekhawat/simple-html-parser-php 1.1.5\" in your project and ready to go. You can \nreplace last argument with any of the version available.\n\n\n\nUsage\n------------------------------\n```\n\u003c?php\n\n\tuse sachinsinghshekhawat\\SimpleHTMLDomParserPHP\\HTMLParser;\n\trequire 'vendor/autoload.php'; //change path of your vendor autload file\n\t\n\t$dom = HTMLParser::file_get_html(\"https://google.com\");\n\t\n\tforeach($dom-\u003efind('img') as $element) \n\t   echo $element-\u003esrc . '\u003cbr\u003e';\n```\n------------------------------\n\nFor more documentations:\n\thttp://simplehtmldom.sourceforge.net/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachinsinghshekhawat%2Fsimple-html-dom-parser-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsachinsinghshekhawat%2Fsimple-html-dom-parser-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachinsinghshekhawat%2Fsimple-html-dom-parser-php/lists"}