bedd/common

PHP common library and utils

1.0.0 2018-01-02 13:13 UTC

This package is not auto-updated.

Last update: 2024-11-24 03:59:06 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Code Quality

Installation

The best way to install this library is to use composer.

{
    "require": {
        "bedd/common": "1.*"
    }
}

Utils

Arrays

  • ArrayUtils::hasStringKeys
  • ArrayUtils::hasIntegerKeys
  • ArrayUtils::findValueByKeys
  • ArrayUtils::flatten
  • ArrayUtils::renameKey

Date Times

  • DateTimeUtils::SECONDS_PER_MINUTE
  • DateTimeUtils::SECONDS_PER_HOUR
  • DateTimeUtils::SECONDS_PER_DAY
  • DateTimeUtils::SECONDS_PER_WEEK
  • DateTimeUtils::SECONDS_PER_MONTH
  • DateTimeUtils::SECONDS_PER_YEAR

Objects

  • ObjectUtils::getConstants

Strings

  • StringUtils::splitOnUpperCase
  • StringUtils::splitOnLowerCase
  • StringUtils::startsWith
  • StringUtils::endsWith
  • StringUtils::convertToBool

Traits

  • SingletonTrait
  • StaticClassTrait

License

This library is available under the MIT license.