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

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

litwicki/common
===============

Helper functions and utilities.

1.0(10y ago)01.5kMITPHPPHP &gt;=5.3

Since May 29Pushed 9y agoCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Litwicki Common
===============

[](#litwicki-common)

A set of helper functions and utilities with a wide variety of use.

- `Litwicki\Common\Common` is great for various string manipulations, validations, and quick formatting.
- `Litwicki\Common\Form` provides helper methods to build arrays and form `select` for common city, state, country elements.
- `Litwicki\Common\Http` provides a helper to parse the Http User Agent to a more readable format.
- `Litwicki\Common\Object` includes methods to convert objects to xml, json, array, and vice versa.
- `Litwicki\Common\TimeAgo` allows you to parse a `DateTime` into a readable string of hours, minutes, and/or seconds ago.

Install
-------

[](#install)

```
$ composer require "litwicki/common"

```

Usage
-----

[](#usage)

Include each of the helpers individually.

```
use Litwicki\Common\Common;
use Litwicki\Common\Form;
use Litwicki\Common\Http;
use Litwicki\Common\Object;
use Litwicki\Common\TimeAgo;

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

4007d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fb72446ddd43ca29af489a6bb069cf3edad4c0d5b23459c3468c6bdea180070?d=identicon)[litwicki](/maintainers/litwicki)

---

Top Contributors

[![litwicki](https://avatars.githubusercontent.com/u/1413041?v=4)](https://github.com/litwicki "litwicki (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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