2017 © Pedro Peláez
 

library peach2

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

image

trashtoy/peach2

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

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 6 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PEACH2

PHP Extension leading your ACHIEVEMENT., (*1)

Features

Util

Object-oriented array manipulation modules like Java Collections Framework., (*2)

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

DT

Object-oriented datetime management API., (*3)

  • 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

This module helps you to markup HTML or XML dynamically., (*4)

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

DF

Data format encoding / decoding API. All the classes of this module implement interface Codec., (*5)

  • Utf8Codec: dealing with the interconversion of unicode codepoints and UTF-8 string
    • example: 'süß' (byte sequence: 73 C3 BC C3 9F) => decode => array(0x73, 0xFC, 0xDF) => encode => 'süß'
  • JsonCodec: alternative of json_encode and json_decode
  • Base64Codec: wrapping base64_encode and base64_decode
  • SerializationCodec: wrapping serialize and unserialize
  • CodecChain: concatenating multiple Codec instances

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., (*6)

Requirements

  • PHP 5.3.0 or later

That's all., (*7)

How to use

Composer

You can install using composer by the following command:
composer require trashtoy/peach2, (*8)

Autoloading

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

Documentation

Online documentation is available., (*10)

Roadmap

Package Description
RB Object-oriented i18n module. (RB represents ResourceBundle.)
DB A reinvented O/R mapper.
App Various components about web application development. (Forms, validations, etc.)

The Versions

01/07 2017

dev-develop

dev-develop https://github.com/trashtoy/PEACH2

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

xml array html date markup time datetime util

29/06 2017

dev-fix

dev-fix https://github.com/trashtoy/PEACH2

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

xml array html date markup time datetime util

03/01 2017

dev-master

9999999-dev https://github.com/trashtoy/PEACH2

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

xml array html date markup time datetime util

03/01 2017

2.2.0

2.2.0.0 https://github.com/trashtoy/PEACH2

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

xml array html date markup time datetime util

31/12 2016

dev-release-2.2.0

dev-release-2.2.0 https://github.com/trashtoy/PEACH2

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

xml array html date markup time datetime util

27/12 2016

dev-phpdoc

dev-phpdoc https://github.com/trashtoy/PEACH2

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

xml array html date markup time datetime util

11/09 2015

2.1.1

2.1.1.0 https://github.com/trashtoy/PEACH2

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

xml array html date markup time datetime util