{"id":15027303,"url":"https://github.com/artem14133q/sxml","last_synced_at":"2026-01-28T12:33:47.711Z","repository":{"id":203066291,"uuid":"708732292","full_name":"artem14133q/sxml","owner":"artem14133q","description":"A simple php library for manage xml/html documents.","archived":false,"fork":false,"pushed_at":"2024-02-02T10:34:55.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T15:46:11.859Z","etag":null,"topics":["html","library","php","php8","php81","xml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"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/artem14133q.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2023-10-23T09:23:17.000Z","updated_at":"2024-01-18T08:17:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"200d2b44-f503-4513-b6a0-789e3c3bfcf7","html_url":"https://github.com/artem14133q/sxml","commit_stats":null,"previous_names":["artem14133q/sxml"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/artem14133q/sxml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem14133q%2Fsxml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem14133q%2Fsxml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem14133q%2Fsxml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem14133q%2Fsxml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artem14133q","download_url":"https://codeload.github.com/artem14133q/sxml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artem14133q%2Fsxml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T10:53:21.605Z","status":"ssl_error","status_checked_at":"2026-01-28T10:53:20.789Z","response_time":57,"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":["html","library","php","php8","php81","xml"],"created_at":"2024-09-24T20:06:09.784Z","updated_at":"2026-01-28T12:33:47.691Z","avatar_url":"https://github.com/artem14133q.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SXML\n\nA simple php library for manage xml/html documents.\n\n## Php version\n`^8.1`\n\n## Installation\n`composer require artem14133q/sxml`\n\n## Usage\n```php\nuse Sxml\\Documents\\HtmlDocument;\n\n$html = \"\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\"\n          content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\"\u003e\n    \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"\u003e\n    \u003ctitle\u003eDocument\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cdiv\u003eHello World!\u003c/div\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n\";\n\n$doc = HtmlDocument($html);\n\n$body = $doc-\u003egetHtmlNode()-\u003efindByName(\"body\")[0];\n$div = $body-\u003efindByName(\"div\")[0];\n\n$div-\u003esetValue(\"Hello SXML!\");\n\n$doc-\u003ewriter-\u003easText();\n```\n\nInput:\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\"\n          content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\"\u003e\n    \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"\u003e\n    \u003ctitle\u003eDocument\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cdiv\u003eHello SXML!\u003c/div\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## License\n`MIT`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartem14133q%2Fsxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartem14133q%2Fsxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartem14133q%2Fsxml/lists"}