PHPackages                             runopencode/dm-common-helpers-plugin - 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. runopencode/dm-common-helpers-plugin

AbandonedSymfony1-plugin[Utility &amp; Helpers](/categories/utility)

runopencode/dm-common-helpers-plugin
====================================

dmCommonHelpersPlugin - The collection of common helpers and libraries for Diem Extended

133PHP

Since Dec 9Pushed 13y ago2 watchersCompare

[ Source](https://github.com/RunOpenCode/dmCommonHelpersPlugin)[ Packagist](https://packagist.org/packages/runopencode/dm-common-helpers-plugin)[ RSS](/packages/runopencode-dm-common-helpers-plugin/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

dmCommonHelpersPlugin for Diem Extended
=======================================

[](#dmcommonhelpersplugin-for-diem-extended)

Author: [TheCelavi](http://www.runopencode.com/about/thecelavi), [Grouchy](http://www.runopencode.com/about/grouchy)Version: 0.0.2 Stability: Stable
Date: December 9th, 2012
Courtesy of [Run Open Code](http://www.runopencode.com)
License: [Free for all](http://www.runopencode.com/terms-and-conditions/free-for-all)

dmCommonHelpersPlugin for Diem Extended is collection of common:

- template helpers
- helpers
- classes and libraries

that are used in various plugins provided by RunOpenCode, and, of course, they can be used for projects as well.

Additional utilities are most welcome.

Currently implemented template helpers
--------------------------------------

[](#currently-implemented-template-helpers)

\###`File` helper functions:

- `format_file_size_from_bytes`: Formats size of file in bytes to bytes, KBs, MBs or GBs with size label
- `format_posix_file_permissions_to_human`: Formats posix file permissions to human
- `get_posix_file_owner_info_by_id`: Returns required info regarding owner
- `get_posix_file_group_info_by_id`: Returns required info regarding group
- `get_file_properties`: Returns common OS properties for file HDD

### `Word` helper functions:

[](#word-helper-functions)

- `get_reduced_raw_text`: Reduce given raw text to defined number of words or chars

### `Money` helper functions:

[](#money-helper-functions)

- `format_amount`: Formats amount of money according to the format settings in `config.yml`

Currently implemented utility classes
-------------------------------------

[](#currently-implemented-utility-classes)

### `dmConsoleLog` class:

[](#dmconsolelog-class)

The class can be injected via service container, as `console_log` service. The service ought to be used for the logging into console, for tasks.

Even if this is enabled to do trough tasks, by using this service, you can write service that can be used in task and service can log into console, if service is called from task.

In that matter, there is no duplicated code (service and task doing the same thing).

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/410738?v=4)[Nikola Svitlica](/maintainers/TheCelavi)[@TheCelavi](https://github.com/TheCelavi)

---

Top Contributors

[![TheCelavi](https://avatars.githubusercontent.com/u/410738?v=4)](https://github.com/TheCelavi "TheCelavi (3 commits)")

### Embed Badge

![Health badge](/badges/runopencode-dm-common-helpers-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/runopencode-dm-common-helpers-plugin/health.svg)](https://phpackages.com/packages/runopencode-dm-common-helpers-plugin)
```

PHPackages © 2026

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