{"id":19839886,"url":"https://github.com/themarlboroman/php-pattern-matcher","last_synced_at":"2026-06-08T18:31:31.535Z","repository":{"id":100037396,"uuid":"136841816","full_name":"TheMarlboroMan/php-pattern-matcher","owner":"TheMarlboroMan","description":"Simple class to match strings","archived":false,"fork":false,"pushed_at":"2023-02-22T07:57:00.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T22:21:33.054Z","etag":null,"topics":["match","parameter","php","string"],"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/TheMarlboroMan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-06-10T20:17:22.000Z","updated_at":"2022-09-13T06:37:41.000Z","dependencies_parsed_at":"2023-03-18T10:01:28.142Z","dependency_job_id":null,"html_url":"https://github.com/TheMarlboroMan/php-pattern-matcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheMarlboroMan/php-pattern-matcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMarlboroMan%2Fphp-pattern-matcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMarlboroMan%2Fphp-pattern-matcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMarlboroMan%2Fphp-pattern-matcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMarlboroMan%2Fphp-pattern-matcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheMarlboroMan","download_url":"https://codeload.github.com/TheMarlboroMan/php-pattern-matcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMarlboroMan%2Fphp-pattern-matcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34075952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":["match","parameter","php","string"],"created_at":"2024-11-12T12:24:39.887Z","updated_at":"2026-06-08T18:31:31.511Z","avatar_url":"https://github.com/TheMarlboroMan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-pattern-matcher\n\nSimple class to match strings\n\n# what is this\n\nIt matches strings against strings and allows for a level of parametrization, say\n\nthis_is_my/[value:int]/and_something_[other_value:alpha]/else\n\nCan be matched to \"this_is_my/33/and_something_word/else\" in a way in which a match would exist and two values would be parametrized: 33 and \"word\".\n\n# so... like regular expressions?\n\nBut slower. And with less features.\n\n# then... why?\n\nI needed something like this for a router and it had to fulfill a these requirements:\n\n- The pattern syntax needed to be really easy and homogeneous.\n- The people who would use it needed to be able to extend, debug and follow the code along.\n\n# would I want to use this, how would I do it?\n\nCheck the examples directory. There are a couple of examples there that will show you how to match strings and extract parameters.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemarlboroman%2Fphp-pattern-matcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemarlboroman%2Fphp-pattern-matcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemarlboroman%2Fphp-pattern-matcher/lists"}