{"id":36238746,"url":"https://github.com/stoatally/dom","last_synced_at":"2026-01-11T06:09:32.945Z","repository":{"id":57060069,"uuid":"82768922","full_name":"stoatally/dom","owner":"stoatally","description":"Life improving enhancements to the standard PHP DOM.","archived":false,"fork":false,"pushed_at":"2017-12-10T00:17:37.000Z","size":71,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-12T12:42:33.522Z","etag":null,"topics":["dom","html","php7","xml"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/stoatally.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":"2017-02-22T06:26:06.000Z","updated_at":"2022-02-12T14:34:01.000Z","dependencies_parsed_at":"2022-08-24T07:30:40.366Z","dependency_job_id":null,"html_url":"https://github.com/stoatally/dom","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/stoatally/dom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoatally%2Fdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoatally%2Fdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoatally%2Fdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoatally%2Fdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stoatally","download_url":"https://codeload.github.com/stoatally/dom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stoatally%2Fdom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28293320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"last_error":"SSL_read: 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":["dom","html","php7","xml"],"created_at":"2026-01-11T06:09:32.475Z","updated_at":"2026-01-11T06:09:32.936Z","avatar_url":"https://github.com/stoatally.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Document Object Model\n\n Life improving enhancements to the standard PHP DOM.\n\n[![Build Status](https://secure.travis-ci.org/stoatally/dom.svg?branch=master)](http://travis-ci.org/stoatally/dom)\n\n\n## Install\n\nThe recommended way to install Text Expressions is [through composer](http://getcomposer.org).\n\n```JSON\n{\n    \"require\": {\n        \"stoatally/dom\": \"0.*\"\n    }\n}\n```\n\n\n## Usage\n\nCreate a document factory:\n\n```php\nuse Stoatally\\Dom\\DocumentFactory;\n\n$factory = new DocumentFactory();\n```\n\nSet the text content of a node:\n\n```php\n$document = $factory-\u003ecreateFromString('\u003cp/\u003e');\n$document-\u003eselect('p')-\u003esetContents('PHP \u003c3');\n// \u003e \u003cp\u003ePHP \u0026lt;3\u003c/p\u003e\n```\n\nFor more comprehensive examples see the [examples](./examples) and [tests](./tests) directories.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoatally%2Fdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstoatally%2Fdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstoatally%2Fdom/lists"}