vikbert / istype
Type checks values in PHP
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vikbert/istype
Requires
- php: >=7.4
- ext-fileinfo: *
- ext-json: *
- ext-simplexml: *
Requires (Dev)
- phpunit/phpunit: 9.5.x-dev
This package is auto-updated.
Last update: 2025-10-08 19:07:17 UTC
README
Is::{method}($value)
Type checks values in PHP
Example
$isEmail = Is::email('vikbert@mail.com'); //=> true $isEmail = Is::email('vikbert@mail'); //=> false
Install
composer req vikbert/istype
Test
vendor/bin/phpunit
API
| usage | return | description |
|---|---|---|
| Is::email($value) | bool | check if it is an email string |
| Is::url($value) | bool | check if it is an URL string |
| Is::https($value) | bool | check if it is an URL with "https" scheme |
| Is::http($value) | bool | check if it is an URL with "http" scheme |
| Is::file($value) | bool | check if it is a valid file |
| Is::image($value) | bool | check if it is a valid image |
| Is::json($value) | bool | check if it is a valid json string |
| Is::xml($value) | bool | check if it is a valid xml string |
| Is::ip($value) | bool | check if it is a valid IP address |
licence
MIT @vikbert