PHPackages                             weizhang/utilities - 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. weizhang/utilities

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

weizhang/utilities
==================

Package that contains helper classes to perform simple tasks

v1.0.0(7y ago)03MITPHPPHP ^7.2CI failing

Since Apr 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/LeeWeiZhang/Utilities)[ Packagist](https://packagist.org/packages/weizhang/utilities)[ RSS](/packages/weizhang-utilities/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Utilities

- isMobile `check request is from mobile device`

```
deviceCheck = new DeviceCheck();
$deviceCheck->setServerVar($_SERVER);
$isMobile = $deviceCheck->isMobile();

```

- deviceType `get device type of request`

```
$deviceCheck = new DeviceCheck();
$deviceCheck->setServerVar([
    'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0',
    'HTTP_ACCEPT' => 'text/plain; q=0.5, text/html,text/x-dvi; q=0.8, text/x-c'
]);
$deviceType = $deviceCheck->deviceType();

```

- getDownloadSize `get request download size`

```
$file = new Requests();
$size = $file->getDownloadSize(['https://filepath.com']); // size returns is in bytes

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.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

Unknown

Total

1

Last Release

2595d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0583b1fe24b3250076356951d545319bdc8d8e777569b58cad8127215600c91?d=identicon)[Lee Wei Zhang](/maintainers/Lee%20Wei%20Zhang)

---

Top Contributors

[![avanawz](https://avatars.githubusercontent.com/u/37997318?v=4)](https://github.com/avanawz "avanawz (8 commits)")[![LeeWeiZhang](https://avatars.githubusercontent.com/u/13635576?v=4)](https://github.com/LeeWeiZhang "LeeWeiZhang (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/weizhang-utilities/health.svg)

```
[![Health](https://phpackages.com/badges/weizhang-utilities/health.svg)](https://phpackages.com/packages/weizhang-utilities)
```

###  Alternatives

[sylius-labs/polyfill-symfony-framework-bundle

Symfony FrameworkBundle Polyfill

135.9M2](/packages/sylius-labs-polyfill-symfony-framework-bundle)[roots/bedrock-disallow-indexing

Disallow indexing of your site on non-production environments

134.0M32](/packages/roots-bedrock-disallow-indexing)[pixelant/pxa-newsletter-subscription

Newsletter Subscription

1710.1k1](/packages/pixelant-pxa-newsletter-subscription)[enlitepro/zf2-scaffold

1022.5k3](/packages/enlitepro-zf2-scaffold)

PHPackages © 2026

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