PHPackages                             webuilder240/is-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webuilder240/is-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webuilder240/is-php
===================

this labrary is is.js inspired Library for php

0.0.5(10y ago)221[1 issues](https://github.com/webuilder240/is.php/issues)MITPHPPHP &gt;=5.4.0

Since Jul 25Pushed 10y ago2 watchersCompare

[ Source](https://github.com/webuilder240/is.php)[ Packagist](https://packagist.org/packages/webuilder240/is-php)[ RSS](/packages/webuilder240-is-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (6)Used By (0)

is.php 0.0.5
============

[](#isphp-005)

\[[![Code Coverage](https://camo.githubusercontent.com/b0c3df0bcf49a8a2c4cc7918964c0529a2fd42c2434f80c0855005cc32a6e424/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f77656275696c6465723234302f69732e7068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/webuilder240/is.php/?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/37ba4bfef373ff77fef8b2dfc71eba4a8d986f4b9f386c8c62e6399bb53bf6d0/68747470733a2f2f706f7365722e707567782e6f72672f77656275696c6465723234302f69732d7068702f76657273696f6e)](https://camo.githubusercontent.com/37ba4bfef373ff77fef8b2dfc71eba4a8d986f4b9f386c8c62e6399bb53bf6d0/68747470733a2f2f706f7365722e707567782e6f72672f77656275696c6465723234302f69732d7068702f76657273696f6e)\]() [![Build Status](https://camo.githubusercontent.com/bc72d467881b94606c41d2c7b3bcb8428420d676600d9ee45effb848d2d70c7b/68747470733a2f2f7472617669732d63692e6f72672f77656275696c6465723234302f69732e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/webuilder240/is.php)

Usage:
======

[](#usage)

```
composer require webuilder240/is-php
```

Web Server Check:
=================

[](#web-server-check)

Is\\Is::apache()
----------------

[](#isisapache)

```
Is\Is::apache();
// true if current run server is apache
```

Is\\Is::build\_in\_server()
---------------------------

[](#isisbuild_in_server)

```
Is\Is::build_in_server();
// true if current run server is php build_in_server(cli-server)
```

Server Check:
=============

[](#server-check)

Is\\Is::ssl()
-------------

[](#isisssl)

```
Is\Is::ssl();
// true if current run server protocol is 'ssl'
```

Is\\Is::localhost()
-------------------

[](#isislocalhost)

```
Is\Is::localhost();
// true if current run server ip is 'localhost' or 127.0.0.1
```

Is\\Is::host(value:string)
--------------------------

[](#isishostvaluestring)

```
Is\Is::host('www.google.com');
// true if current run server host name is 'www.google.com'
```

Is\\Is::host\_ip(value:string)
------------------------------

[](#isishost_ipvaluestring)

```
Is\Is::host_ip('192.168.56.101');
// true if current run server host ip address '192.168.56.101'
```

UserAgent Check
===============

[](#useragent-check)

Is\\Is::chrome()
----------------

[](#isischrome)

```
Is\Is::chorme();
// true if current browser is chrome
```

Is\\Is::firefox()
-----------------

[](#isisfirefox)

```
Is\Is::firefox();
// true if current browser is firefox
```

Is\\Is::safari()
----------------

[](#isissafari)

```
Is\Is::safari();
// true if current browser is safari
```

Is\\Is::opera()
---------------

[](#isisopera)

```
Is\Is::opera();
// true if current browser is opera
```

Is\\Is::ie(version:int)
-----------------------

[](#isisieversionint)

```
Is\Is::ie();
// true if current browser is ie

Is\Is::ie(8);
// true if current brower is ie version 8
```

Is\\Is::ios()
-------------

[](#isisios)

```
Is\Is::ios();
// true if current device has iOS
```

Is\\Is::android();
------------------

[](#isisandroid)

```
Is\Is::android();
// true if current device has Android OS
```

Is\\Is::mobile() \[phone\]
--------------------------

[](#isismobile-phone)

```
Is\Is::mobile();
// true if current device is mobile (phone)
```

Is\\Is::tablet()
----------------

[](#isistablet)

```
Is\Is::tablet();
// true if current device is tablet
```

HttpMethod Check
================

[](#httpmethod-check)

Is\\Is::request\_get()
----------------------

[](#isisrequest_get)

```
Is\Is::request_get();
// true if current request is GET request
```

Is\\Is::request\_post()
-----------------------

[](#isisrequest_post)

```
Is\Is::request_post();
// true if current request is POST request
```

Is\\Is::request\_put()
----------------------

[](#isisrequest_put)

```
Is\Is::request_put();
// true if current request is PUT request
```

Is\\Is::request\_patch()
------------------------

[](#isisrequest_patch)

```
Is\Is::request_patch();
// true if current request is PATCH request
```

Is\\Is::request\_delete()
-------------------------

[](#isisrequest_delete)

```
Is\Is::request_delete();
// true if current request is DELETE request
```

Is\\Is::http\_status\_code(uri:string,http\_code:int)
-----------------------------------------------------

[](#isishttp_status_codeuristringhttp_codeint)

```
Is\Is::http_status_code('http://google.com',302);
// true if http://google.com is responsed http_status_code 302
```

TypeCheck
=========

[](#typecheck)

Is\\Is::same\_type(val:any,val:any)
-----------------------------------

[](#isissame_typevalanyvalany)

```
Is\Is::same_type(1,2);
// true

Is\Is::same_type('1',2);
// false
```

String Check
============

[](#string-check)

Is\\Is::str\_include(str:string,search\_word:string)
----------------------------------------------------

[](#isisstr_includestrstringsearch_wordstring)

```
Is\Is::str_include('nick','n');
// true

Is\Is::str_include('test','text);
// false
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

5

Last Release

3944d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f3506aab02a593bcd154e8bafd1381781ae3c7f795a3fe29e55c80d8d0ef00b?d=identicon)[oh240](/maintainers/oh240)

---

Top Contributors

[![webuilder240](https://avatars.githubusercontent.com/u/4527382?v=4)](https://github.com/webuilder240 "webuilder240 (37 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webuilder240-is-php/health.svg)

```
[![Health](https://phpackages.com/badges/webuilder240-is-php/health.svg)](https://phpackages.com/packages/webuilder240-is-php)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
