PHPackages                             wongyip/phphelpers - 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. wongyip/phphelpers

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

wongyip/phphelpers
==================

Useful PHP classes.

v0.5.5(5mo ago)02.1k↓50%2MITPHPPHP ^8.2

Since Oct 25Pushed 5mo ago1 watchersCompare

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

READMEChangelogDependenciesVersions (32)Used By (2)

PHP Helpers
===========

[](#php-helpers)

A collection of utility PHP classes designed for everyday development tasks. This library provides convenient static methods for formatting and converting various data types.

Classes
-------

[](#classes)

### Format

[](#format)

A comprehensive formatting utility class with support for:

- **Array formatting** - Convert arrays to text, flatten nested structures
- **DateTime formatting** - Predefined formats for MySQL, JavaScript, Outlook, and more
- **File size formatting** - Human-readable file sizes with binary/metric prefixes
- **String formatting** - Case conversions (camel, kebab, snake, studly), smart capitalization
- **Date interval formatting** - Human-readable time periods

### Other Classes

[](#other-classes)

- **ICAL** - Generate standardized ICAL format calendars
- **Convert** - Data conversion utilities
- **CSS** - CSS-related helpers
- **IPv4** - IPv4 address utilities

### Deprecated

[](#deprecated)

- **DT** &amp; **DTFormat** - Additional date/time utilities

Quick Start
-----------

[](#quick-start)

```
use Wongyip\PHPHelpers\Format;

// Format file sizes
echo Format::fileSize(1536); // "1.5 KB"

// Format dates
echo Format::MySQL(); // "2023-12-25 15:30:45"

// Convert strings
echo Format::camel('hello-world'); // "helloWorld"

// Format arrays to text
$data = ['name' => 'John', 'age' => 30];
echo Format::toText($data);
// name: John
// age : 30
```

Documentation
-------------

[](#documentation)

- [Format Class Documentation](docs/Format.php.md)
- [ICAL Class Documentation](docs/ICAL.php.md)

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

[](#installation)

```
composer require wongyip/phphelpers
```

Requirements
------------

[](#requirements)

- PHP 8.0 or higher

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance70

Regular maintenance activity

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity77

Established project with proven stability

 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

Every ~101 days

Recently: every ~33 days

Total

30

Last Release

174d ago

PHP version history (2 changes)v0.3.0PHP &gt;=7.4

v0.5.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/d49e948c3119a3b6a39247b96f577d4df2628b9a15583ef0fbf128b0b41d8622?d=identicon)[wongyip](/maintainers/wongyip)

---

Top Contributors

[![wongyip](https://avatars.githubusercontent.com/u/9350540?v=4)](https://github.com/wongyip "wongyip (16 commits)")

### Embed Badge

![Health badge](/badges/wongyip-phphelpers/health.svg)

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

###  Alternatives

[patricktalmadge/bootstrapper

Twitter Bootstrap markup generator

557407.2k4](/packages/patricktalmadge-bootstrapper)

PHPackages © 2026

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