{"id":28413282,"url":"https://github.com/vikbert/istype","last_synced_at":"2025-06-24T20:31:03.281Z","repository":{"id":57077982,"uuid":"445630939","full_name":"vikbert/istype","owner":"vikbert","description":"A simple PHP library for checking the type","archived":false,"fork":false,"pushed_at":"2022-01-08T10:46:07.000Z","size":834,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-03T15:26:17.648Z","etag":null,"topics":[],"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/vikbert.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":"2022-01-07T19:28:20.000Z","updated_at":"2022-01-08T10:46:10.000Z","dependencies_parsed_at":"2022-08-24T14:56:11.783Z","dependency_job_id":null,"html_url":"https://github.com/vikbert/istype","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vikbert/istype","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Fistype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Fistype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Fistype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Fistype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vikbert","download_url":"https://codeload.github.com/vikbert/istype/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vikbert%2Fistype/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261751456,"owners_count":23204429,"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":"2025-06-03T04:33:48.704Z","updated_at":"2025-06-24T20:31:03.272Z","avatar_url":"https://github.com/vikbert.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./docs/logo.png\" width=\"140px\" alt=\"logo\" /\u003e\n  \u003ch2\u003eIs::{method}($value)\u003c/h2\u003e\n  \u003cp\u003eType checks values in PHP\u003c/p\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"#\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/PRs-Welcome-brightgreen.svg?style=flat-square\" alt=\"PRs Welcome\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"#\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat-square\" alt=\"MIT License\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## Example\n\n```php\n$isEmail = Is::email('vikbert@mail.com'); //=\u003e true\n$isEmail = Is::email('vikbert@mail'); //=\u003e false\n```\n\n## Install\n\n```bash\ncomposer req vikbert/istype\n```\n\n## Test\n\n```bash\nvendor/bin/phpunit\n```\n\n## API\n\n| usage  | return  | description |\n|---|---|---|\n| Is::email($value)  | bool  | check if it is an email string  |\n| Is::url($value)  | bool  | check if it is an URL string  |\n| Is::https($value)  | bool  | check if it is an URL with \"https\" scheme  |\n| Is::http($value)  | bool  | check if it is an URL with \"http\" scheme  |\n| Is::file($value)  | bool  | check if it is a valid file  |\n| Is::image($value)  | bool  | check if it is a valid image  |\n| Is::json($value)  | bool  | check if it is a valid json string  |\n| Is::xml($value)  | bool  | check if it is a valid xml string  |\n| Is::ip($value)  | bool  | check if it is a valid IP address  |\n\n## licence\n\nMIT [@vikbert](https://vikbert.github.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikbert%2Fistype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikbert%2Fistype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikbert%2Fistype/lists"}