{"id":19388984,"url":"https://github.com/james2doyle/commonregexphp","last_synced_at":"2025-07-09T21:32:54.641Z","repository":{"id":56996171,"uuid":"166759915","full_name":"james2doyle/CommonRegexPHP","owner":"james2doyle","description":"Find a lot of kinds of common information in a string","archived":false,"fork":false,"pushed_at":"2019-01-21T06:31:36.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T23:39:18.885Z","etag":null,"topics":["dates","parsing","php","regex","string","times"],"latest_commit_sha":null,"homepage":null,"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/james2doyle.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}},"created_at":"2019-01-21T06:27:54.000Z","updated_at":"2021-04-22T23:37:08.000Z","dependencies_parsed_at":"2022-08-21T13:50:54.878Z","dependency_job_id":null,"html_url":"https://github.com/james2doyle/CommonRegexPHP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/james2doyle/CommonRegexPHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2FCommonRegexPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2FCommonRegexPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2FCommonRegexPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2FCommonRegexPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james2doyle","download_url":"https://codeload.github.com/james2doyle/CommonRegexPHP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2FCommonRegexPHP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264503951,"owners_count":23618762,"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":["dates","parsing","php","regex","string","times"],"created_at":"2024-11-10T10:14:17.059Z","updated_at":"2025-07-09T21:32:54.618Z","avatar_url":"https://github.com/james2doyle.png","language":"PHP","readme":"CommonRegexPHP\n===============\n\n\u003e Migrated from [talyssonoc/CommonRegexJS](https://github.com/talyssonoc/CommonRegexJS)\n\n[CommonRegex](https://github.com/madisonmay/CommonRegex/ \"CommonRegex\") port for PHP\n\nFind a lot of kinds of common information in a string.\n\nPull requests welcome!\n\nPlease note that this is currently English/US specific.\n\nUsage\n======\n\n```\ncomposer require james2doyle/common-regex-php\n```\n\nThen somewhere in the code:\n\n```php\n$parser = new CommonRegexPHP;\n$results = $parse('See you at 12:00AM on March 22nd 2018');\n// returns [\n//     'dates' =\u003e [\n//         'March 22nd 2018',\n//     ],\n//     'times' =\u003e [\n//         '12:00AM',\n//     ],\n// ]\n\n// shorthand\n$results = (new CommonRegexPHP)('See you at 12:00AM on March 22nd 2018');\n```\n\nRunning Tests\n===============\n\n```\ncomposer install\ncomposer run test\n```\n\nCommonRegex Ports\n==================\nThere are CommonRegex ports for other languages, see [here](https://github.com/madisonmay/CommonRegex/#commonregex-ports \"CommonRegex ports\")\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fcommonregexphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames2doyle%2Fcommonregexphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fcommonregexphp/lists"}