PHPackages                             bedd/common - 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. bedd/common

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

bedd/common
===========

PHP common library and utils

1.0.0(8y ago)0161MITPHPPHP &gt;=5.5.0

Since Jan 2Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Bedd/common)[ Packagist](https://packagist.org/packages/bedd/common)[ RSS](/packages/bedd-common/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/a581e57f4f2ca078ece66f56ff9bdb6ead87dfbb36e1c4359aecacaea81dffdc/68747470733a2f2f7472617669732d63692e6f72672f426564642f636f6d6d6f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Bedd/common) [![Latest Stable Version](https://camo.githubusercontent.com/044e76129703c60b51ba00d9b4119da205c1db84107bb63f26d449d395a74658/68747470733a2f2f706f7365722e707567782e6f72672f626564642f636f6d6d6f6e2f762f737461626c65)](https://packagist.org/packages/bedd/common) [![Total Downloads](https://camo.githubusercontent.com/a08c755ee935209fec97e545b847ca4574c4c6b0a08eae39e5ff175a7e113299/68747470733a2f2f706f7365722e707567782e6f72672f626564642f636f6d6d6f6e2f646f776e6c6f616473)](https://packagist.org/packages/bedd/common) [![Latest Unstable Version](https://camo.githubusercontent.com/b05d65357f3177f6508da540a2b49b736528d007b08c8779d05db8c972a2f2d1/68747470733a2f2f706f7365722e707567782e6f72672f626564642f636f6d6d6f6e2f762f756e737461626c65)](https://packagist.org/packages/bedd/common) [![License](https://camo.githubusercontent.com/281f1abcbaa7401ba5f6fd520df423ae62945815e7246a93b649ec48afa72f5e/68747470733a2f2f706f7365722e707567782e6f72672f626564642f636f6d6d6f6e2f6c6963656e7365)](https://packagist.org/packages/bedd/common) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/6b3d09285d4169803bd5b50ab79e2fbee47a9b28866ed357484dc5e121009656/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f426564642f636f6d6d6f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Bedd/common/?branch=master)

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

[](#installation)

The best way to install this library is to use [composer](https://getcomposer.org/).

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

Utils
-----

[](#utils)

### Arrays

[](#arrays)

- ArrayUtils::hasStringKeys
- ArrayUtils::hasIntegerKeys
- ArrayUtils::findValueByKeys
- ArrayUtils::flatten
- ArrayUtils::renameKey

### Date Times

[](#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

[](#objects)

- ObjectUtils::getConstants

### Strings

[](#strings)

- StringUtils::splitOnUpperCase
- StringUtils::splitOnLowerCase
- StringUtils::startsWith
- StringUtils::endsWith
- StringUtils::convertToBool

Traits
------

[](#traits)

- SingletonTrait
- StaticClassTrait

License
-------

[](#license)

This library is available under the [MIT license](LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

Unknown

Total

1

Last Release

3055d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b54f13118926de8371849c48bb073511504fb33fd3f5e624bc9477bd507e824?d=identicon)[schwaen](/maintainers/schwaen)

---

Top Contributors

[![schwaen](https://avatars.githubusercontent.com/u/8160276?v=4)](https://github.com/schwaen "schwaen (16 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (3 commits)")[![ischud](https://avatars.githubusercontent.com/u/26297275?v=4)](https://github.com/ischud "ischud (1 commits)")

---

Tags

commonutilstraits

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bedd-common/health.svg)

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

###  Alternatives

[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)[phpoffice/common

PHPOffice Common

23512.3M36](/packages/phpoffice-common)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)

PHPackages © 2026

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