{"id":24501083,"url":"https://github.com/thomasdev-de/php-extensions","last_synced_at":"2026-02-16T12:33:53.301Z","repository":{"id":150569382,"uuid":"565724268","full_name":"ThomasDev-de/php-extensions","owner":"ThomasDev-de","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-14T08:38:04.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T06:28:42.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThomasDev-de.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":"2022-11-14T07:34:18.000Z","updated_at":"2022-11-14T12:46:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0939fc5-308e-4454-8413-00c055167130","html_url":"https://github.com/ThomasDev-de/php-extensions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ThomasDev-de/php-extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fphp-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fphp-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fphp-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fphp-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThomasDev-de","download_url":"https://codeload.github.com/ThomasDev-de/php-extensions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasDev-de%2Fphp-extensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29507904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":[],"created_at":"2025-01-21T22:23:15.730Z","updated_at":"2026-02-16T12:33:53.285Z","avatar_url":"https://github.com/ThomasDev-de.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-extensions\n\n- [php-extensions](#php-extensions)\n    * [Constants](#constants)\n        + [FILTER_VALIDATE_PHONE](#filter_validate_phone)\n        + [FILTER_VALIDATE_SEX](#filter_validate_sex)\n        + [FILTER_VALIDATE_STATUS](#filter_validate_status)\n        + [FILTER_VALIDATE_GUID](#filter_validate_guid)\n        + [FILTER_VALIDATE_URL_WITH_UMLAUTS](#filter_validate_url_with_umlauts)\n        + [FILTER_VALIDATE_ARRAY_INT](#filter_validate_array_int)\n        + [FILTER_VALIDATE_ARRAY_STRING](#filter_validate_array_string)\n        + [FILTER_VALIDATE_DATE](#filter_validate_date)\n\n## Constants\n### FILTER_VALIDATE_PHONE\nThis constant allowed only letters for a valid phone number.\n```php\nconst FILTER_VALIDATE_PHONE = [\n    'filter' =\u003e FILTER_VALIDATE_REGEXP,\n    'options' =\u003e array('regexp' =\u003e \"~^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\\s\\./0-9]*$~\")\n];\n```\n### FILTER_VALIDATE_SEX\nThis constant allowed only letters for gender recognition.\n- `F`: female\n- `M`: male\n- `D`: divers\n```php\nconst FILTER_VALIDATE_SEX = [\n    'filter' =\u003e FILTER_VALIDATE_REGEXP,\n    'options' =\u003e array('regexp' =\u003e \"~^(F|M|D){1}$~\")\n];\n```\n### FILTER_VALIDATE_STATUS\nThis constant allows to assign only letters for a status\n- `Y`: yes\n- `N`: no\n```php\nconst FILTER_VALIDATE_STATUS = [\n    'filter' =\u003e FILTER_VALIDATE_REGEXP,\n    'options' =\u003e array('regexp' =\u003e \"~^(Y|N){1}$~\")\n];\n```\n### FILTER_VALIDATE_GUID\nThis constant only lets through GUID's\n- `4f74d85c-2f9f-4d5a-9bb8-29ed234457a0`\n```php\nconst FILTER_VALIDATE_GUID = [\n    'filter' =\u003e FILTER_VALIDATE_REGEXP,\n    'options' =\u003e array('regexp' =\u003e \"~^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$~\")\n];\n```\n### FILTER_VALIDATE_URL_WITH_UMLAUTS\nThis constant allows URLs with umlauts.  \n_Attention, umlauts are generally not permitted in URLs, but they can still occur._\n```php\nconst FILTER_VALIDATE_URL_WITH_UMLAUTS = [\n    'filter' =\u003e FILTER_VALIDATE_REGEXP,\n    'options' =\u003e array('regexp' =\u003e \"~^(http|ftp|https):\\/\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%\u0026amp;:\\/~\\+#äöüÄÖÜ]*[\\w\\-\\@?^=%\u0026amp;\\/~\\+#])?$~\")\n];\n```\n### FILTER_VALIDATE_ARRAY_INT\nThis constant only allows arrays with integer values\n- [1,12,2,4,\"19\"]\n```php\nconst FILTER_VALIDATE_ARRAY_INT = [\n    'filter' =\u003e FILTER_VALIDATE_INT,\n    'flags' =\u003e FILTER_REQUIRE_ARRAY,\n];\n```\n### FILTER_VALIDATE_ARRAY_STRING\nThis constant only allows arrays with string values\n```php\nconst FILTER_VALIDATE_ARRAY_STRING = [\n    'filter' =\u003e FILTER_DEFAULT,\n    'flags' =\u003e FILTER_REQUIRE_ARRAY,\n];\n```\n### FILTER_VALIDATE_DATE\nThis constant checks the value for correct formatting of a date.  \n**It does not check for correctness!**\n```php\nconst FILTER_VALIDATE_DATE = [\n    'filter' =\u003e FILTER_VALIDATE_REGEXP,\n    'options' =\u003e array('regexp' =\u003e \"~^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$~\")\n];\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasdev-de%2Fphp-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasdev-de%2Fphp-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasdev-de%2Fphp-extensions/lists"}