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

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

solvire/common-utilities
========================

Solvire Utilities Library

v0.0.2(10y ago)32271GPLPHP

Since Aug 21Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (2)Used By (1)

PHP Common Function Library
===========================

[](#php-common-function-library)

[![Build Status](https://camo.githubusercontent.com/66149445be377cf89c5d9e47c7857dbd171bc3ba2f26e63f71aa24265ace0ee5/68747470733a2f2f7472617669732d63692e6f72672f736f6c766972652f636f6d6d6f6e2d7574696c69746965732e737667)](https://travis-ci.org/solvire/common-utilities)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5134b3399d3b012a27aa63ae672ec9bd1160c2ae09994ffd409a23568ca6ec40/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f6c766972652f636f6d6d6f6e2d7574696c69746965732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/solvire/common-utilities/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/a96b4d762524c521cdce7a89ceda0c44f84039348f8f29e8257879134cdf1267/68747470733a2f2f706f7365722e707567782e6f72672f736f6c766972652f636f6d6d6f6e2d7574696c69746965732f762f737461626c65)](https://packagist.org/packages/solvire/common-utilities)[![License](https://camo.githubusercontent.com/c1de90edf207698dbb3ca416bec2a33325e389b539e74f904e6817ba03c4a8c7/68747470733a2f2f706f7365722e707567782e6f72672f736f6c766972652f636f6d6d6f6e2d7574696c69746965732f6c6963656e7365)](https://packagist.org/packages/solvire/common-utilities)[![Total Downloads](https://camo.githubusercontent.com/8ca85ea1637204b6217604db331750b09bdfb35e5e9a77b5a1dd9fcba8daeb65/68747470733a2f2f706f7365722e707567782e6f72672f736f6c766972652f636f6d6d6f6e2d7574696c69746965732f646f776e6c6f616473)](https://packagist.org/packages/solvire/common-utilities)

About
-----

[](#about)

This is a storage house for the more common things I have had to build. I use them in many projects so there is no point in killing me DRYly.

Installation
------------

[](#installation)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.6+, and [Composer](https://getcomposer.org) are required.

```
composer require solvire/solvire-utilities

```

Libraries
---------

[](#libraries)

### Utilities

[](#utilities)

*Options Checker*

Usage:

```
use Solvire\Utilities\OptionsChecker as Ch;
Ch::ek($options, $requiredFields);
```

This code will just throw an exception if the variables are not present. It doesn't do anything for checking. I was tired of writing the stupid loop all the time.

*Type Converter*

### HTTP

[](#http)

*Request Utility*

Usage:

```
use Solvire\HTTP\RequestUtil as Ru;
$ip = Ru::ip();
```

This will run through the various server variables that might be storing an IP

### Application

[](#application)

*Environment Accessors*

Usage:

```
use Solvire\Application\Environment as Ev;
Ev::get($key);
Ev::get($key,$default);
```

This will get the environment variable listed. If you don't provide a default and the variable isn't set it will blow up on you. Ie. throw and error.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

3923d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4288c369debe2f2ce7b40cb0cde1361040c564e2ef235a8ca271c2d7c401395c?d=identicon)[solvire](/maintainers/solvire)

---

Top Contributors

[![solvire](https://avatars.githubusercontent.com/u/1051614?v=4)](https://github.com/solvire "solvire (30 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[intervention/zodiac

Zodiac Sign Calculator

58191.7k](/packages/intervention-zodiac)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[solspace/craft-calendar

The most powerful event management and calendaring plugin!

1830.8k1](/packages/solspace-craft-calendar)

PHPackages © 2026

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