{"id":21358634,"url":"https://github.com/sandcore-dev/xml-analyzer","last_synced_at":"2025-10-10T13:43:18.808Z","repository":{"id":62540034,"uuid":"335410181","full_name":"sandcore-dev/xml-analyzer","owner":"sandcore-dev","description":"Analyze XML strings or files to determine the type of attributes and text nodes.","archived":false,"fork":false,"pushed_at":"2021-02-22T20:27:20.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T06:17:18.351Z","etag":null,"topics":["php","xml"],"latest_commit_sha":null,"homepage":"","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/sandcore-dev.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":"2021-02-02T20:08:29.000Z","updated_at":"2021-02-22T20:27:23.000Z","dependencies_parsed_at":"2022-11-02T15:45:19.838Z","dependency_job_id":null,"html_url":"https://github.com/sandcore-dev/xml-analyzer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sandcore-dev/xml-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandcore-dev%2Fxml-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandcore-dev%2Fxml-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandcore-dev%2Fxml-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandcore-dev%2Fxml-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandcore-dev","download_url":"https://codeload.github.com/sandcore-dev/xml-analyzer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandcore-dev%2Fxml-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004069,"owners_count":26083667,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["php","xml"],"created_at":"2024-11-22T05:20:51.635Z","updated_at":"2025-10-10T13:43:18.779Z","avatar_url":"https://github.com/sandcore-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XML Analyzer\n\nAnalyze one or more XML strings or files to guess the type and thus the range of values of attributes and node values.\n\n## Examples\n\n```php\n$analyzer = new \\SandcoreDev\\XmlAnalyzer\\XmlAnalyzer();\n\n// Analyze one or more XML strings. More data is more accurate. \n$result = $analyzer-\u003eprocess($xmlString, $anotherXmlString, ...$moreXmlStrings);\n\n// Analyze one or more XML files. More data is more accurate.\n$result = $analyzer-\u003eprocessFile($xmlFile, $anotherXmlFile, ...$moreXmlFiles);\n\n// Available types are in src/Types/\n$result-\u003egetType();\n\n$result-\u003egetAttributes();\n$result-\u003egetAttribute('foo');\n\n$result-\u003egetChildren();\n$child = $result-\u003egetChild('bar');\n\n// Each (child) node has the same methods available\n$child-\u003egetType();\n$child-\u003egetAttributes();\n$child-\u003egetChildren();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandcore-dev%2Fxml-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandcore-dev%2Fxml-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandcore-dev%2Fxml-analyzer/lists"}