comely-io/utils

Utilities for Comely Apps

1.2.10 2019-11-12 05:59 UTC

This package is auto-updated.

Last update: 2020-09-12 07:55:30 UTC


README

Utilities — Collection of mini-components (Security/Cipher, ObjectMapper, Validator, Helpers, etc...)

Prerequisites

  • PHP >= 7.1
  • ext-openssl
  • ext-json
  • ext-bcmath
  • ext-mbstring

Installation

composer require comely-io/data-types

Events

  • Simple Events Register

Security

  • Cipher Component (AES-256-CBC encryption via OpenSSL)
  • PRNG
  • Passwords (Generate, Strength check, Hash)

Time

  • Time (Helper functions)
  • TimeUnits (Serialize number of seconds to/since to strings

OOP

  • ObjectMapper (Map values from an associative array to an object)

Validator

  • Data validation