PHPackages                             trashtoy/peach2 - 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. trashtoy/peach2

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

trashtoy/peach2
===============

provides a general-purpose class library: array manipulation, datetime management, dynamically markup, data encode/decode API, etc.

2.2.0(9y ago)1224[6 issues](https://github.com/trashtoy/PEACH2/issues)MITPHPPHP &gt;=5.3.0

Since Sep 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/trashtoy/PEACH2)[ Packagist](https://packagist.org/packages/trashtoy/peach2)[ Docs](https://github.com/trashtoy/PEACH2)[ RSS](/packages/trashtoy-peach2/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)DependenciesVersions (5)Used By (0)

PEACH2
======

[](#peach2)

PHP Extension leading your ACHIEVEMENT.

Features
--------

[](#features)

### Util

[](#util)

Object-oriented array manipulation modules like [Java Collections Framework](http://docs.oracle.com/javase/8/docs/technotes/guides/collections/).

- Map interface like java.util.HashMap. You can use objects as key.
- Sorting arrays which contain objects.
- Some other utility classes.

### DT

[](#dt)

Object-oriented datetime management API.

- Datetime objects consisting of various scopes. (DATE, DATETIME and TIMESTAMP)
- Easy to sort and compare.
- Library which is designed by immutable classes.
- Loosely-coupled API between datetime manipulation and format/parse.

### Markup

[](#markup)

This module helps you to markup HTML or XML dynamically.

- DOM-like usability.
- Various output customization.
- Helper class enables more simple coding.

### DF

[](#df)

Data format encoding / decoding API. All the classes of this module implement interface Codec.

- Utf8Codec: dealing with the interconversion of unicode codepoints and UTF-8 string
    - example: `'süß'` (byte sequence: 73 C3 BC C3 9F) =&gt; decode =&gt; `array(0x73, 0xFC, 0xDF)` =&gt; encode =&gt; `'süß'`
- JsonCodec: alternative of [json\_encode](http://php.net/manual/function.json-encode.php) and [json\_decode](http://php.net/manual/function.json-decode.php)
- Base64Codec: wrapping [base64\_encode](http://php.net/manual/function.base64-encode.php) and [base64\_decode](http://php.net/manual/function.base64-decode.php)
- SerializationCodec: wrapping [serialize](http://php.net/manual/function.serialize.php) and [unserialize](http://php.net/manual/function.unserialize.php)
- CodecChain: concatenating multiple Codec instances

### Http

[](#http)

HTTP message handling module with minimal side effects. By implementing the interface Endpoint as a mock, you can check the behavior of the web application with a simple unit test.

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

[](#requirements)

- PHP 5.3.0 or later

That's all.

How to use
----------

[](#how-to-use)

### Composer

[](#composer)

You can install using composer by the following command:
`composer require trashtoy/peach2`

### Autoloading

[](#autoloading)

Require autoload.php
`require_once("/path/to/PEACH2/autoload.php");`
or set up autoload manually.

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

[](#documentation)

[Online documentation](http://trashtoy.github.io/PEACH2/) is available.

Roadmap
-------

[](#roadmap)

PackageDescriptionRBObject-oriented i18n module. (RB represents ResourceBundle.)DBA reinvented O/R mapper.AppVarious components about web application development. (Forms, validations, etc.)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~479 days

Total

2

Last Release

3468d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ed7e3dee2815d222f5cf68569b9a7f9ac652d9b05ee5412836a518c4abffdb8?d=identicon)[trashtoy](/maintainers/trashtoy)

---

Top Contributors

[![trashtoy](https://avatars.githubusercontent.com/u/731136?v=4)](https://github.com/trashtoy "trashtoy (367 commits)")

---

Tags

xmlarrayhtmldatetimetimedateutilmarkup

### Embed Badge

![Health badge](/badges/trashtoy-peach2/health.svg)

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

###  Alternatives

[league/period

Time range API for PHP

7335.8M24](/packages/league-period)[brick/date-time

Date and time library

3663.8M108](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

20810.4M16](/packages/aeon-php-calendar)[tplaner/when

Date/Calendar recursion library.

5331.1M7](/packages/tplaner-when)[kartik-v/php-date-formatter

A Javascript datetime formatting and manipulation library using PHP date-time formats.

461.6M3](/packages/kartik-v-php-date-formatter)[dater/dater

Compact PHP library for working with date/time in different formats &amp; timezones.

14484.2k](/packages/dater-dater)

PHPackages © 2026

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