{"id":22974141,"url":"https://github.com/diversen/simple-query-selector","last_synced_at":"2025-04-02T07:25:07.588Z","repository":{"id":56969701,"uuid":"96675958","full_name":"diversen/simple-query-selector","owner":"diversen","description":"A very simple way to query simpleXML documents using CSS selectors with PHP","archived":false,"fork":false,"pushed_at":"2017-07-25T06:51:58.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T22:28:06.945Z","etag":null,"topics":[],"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/diversen.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-07-09T10:04:13.000Z","updated_at":"2017-07-10T07:47:17.000Z","dependencies_parsed_at":"2022-08-21T06:40:22.762Z","dependency_job_id":null,"html_url":"https://github.com/diversen/simple-query-selector","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fsimple-query-selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fsimple-query-selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fsimple-query-selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fsimple-query-selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diversen","download_url":"https://codeload.github.com/diversen/simple-query-selector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246771745,"owners_count":20831094,"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":[],"created_at":"2024-12-15T00:00:15.862Z","updated_at":"2025-04-02T07:25:07.570Z","avatar_url":"https://github.com/diversen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-query-selector\n\nVery simple query-selector for e.g. XML and HTML documents.\nIt uses symfony `CssSelector` in order to make jQuery-like\nqueries on a DOM-tree. `CssSelector` rewrites xpath expressions\nto CSS-selectors, which for most web-developers are much easier\nto understand and work with. Css-selectors is also what e.g. jQuery\nuses, which then makes it familiar to almost any web-developer. \n\nThe `query-selector` class just wraps the functionality of \nthe `CssSelector`.\n\n## Install\n\n\tcomposer require diversen/simple-query-selector\n\n## Usage\n\nSee [test.php](test.php) and [test.xml](test.xml)\n\n## Notice\n\nCssSelector or XPath does not like case-diffrence in the XML it searches \nthrough. You will need some kind of normalisation if your XML has different\ncases, e.g. a tag like `\u003cCustomerTest\u003e\u003c/CustomerTest\u003e` will most likely cause\nproblems. Normalize your XML-string with a function like this: \n\n\t$xml = preg_replace_callback(\"/(\u003c\\/?[^!][^\u003e]+)/\", function ($matches) {\n\t\treturn strtolower($matches[1]);\n\t}, $xml);\n\n## License\n\nMIT © Dennis Iversen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fsimple-query-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiversen%2Fsimple-query-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fsimple-query-selector/lists"}