PHPackages                             anklimsk/cakephp-basic-functions - 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. anklimsk/cakephp-basic-functions

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

anklimsk/cakephp-basic-functions
================================

Global basic utilities for the CakePHP 2.x application

v1.0.2(6y ago)01.7k5MITPHPPHP &gt;=5.4

Since Aug 5Pushed 6y agoCompare

[ Source](https://github.com/anklimsk/cakephp-basic-functions)[ Packagist](https://packagist.org/packages/anklimsk/cakephp-basic-functions)[ Docs](https://github.com/anklimsk/cakephp-basic-functions)[ RSS](/packages/anklimsk-cakephp-basic-functions/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (2)Versions (8)Used By (5)

CakePHP 2.x Basic functions plugin
==================================

[](#cakephp-2x-basic-functions-plugin)

[![Build Status](https://camo.githubusercontent.com/7c620e13227cad9e9b94265cde743bee8f91016ef5d3682963589b0a50ceb25c/68747470733a2f2f7472617669732d63692e636f6d2f616e6b6c696d736b2f63616b657068702d62617369632d66756e6374696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/anklimsk/cakephp-basic-functions)[![Coverage Status](https://camo.githubusercontent.com/e761d2750788d28126043f1f5419286d203fbb35ca926b31ffbea5febc2cd52b/68747470733a2f2f636f6465636f762e696f2f67682f616e6b6c696d736b2f63616b657068702d62617369632d66756e6374696f6e732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/anklimsk/cakephp-basic-functions)[![Latest Stable Version](https://camo.githubusercontent.com/be76334f6e8a0657f009944c547406faaa8bcb8684211575b30baef9469126ed/68747470733a2f2f706f7365722e707567782e6f72672f616e6b6c696d736b2f63616b657068702d62617369632d66756e6374696f6e732f76657273696f6e)](https://packagist.org/packages/anklimsk/cakephp-basic-functions)[![License](https://camo.githubusercontent.com/fa8c04c96ea6b6003a1e11f59079c1fa92804d6a1f600f592d02fe9fcf2547be/68747470733a2f2f706f7365722e707567782e6f72672f616e6b6c696d736b2f63616b657068702d62617369632d66756e6374696f6e732f6c6963656e7365)](https://packagist.org/packages/anklimsk/cakephp-basic-functions)

Global basic utilities for the CakePHP application

This plugin provides next features:
-----------------------------------

[](#this-plugin-provides-next-features)

- Getting array of constants value with name `constsToWords()`;
- Getting array of constants values by prefix `constsVals()`;
- Getting name of constant by prefix and value `constValToLcSingle()`;
- Translate array values by Domain name `translArray()`;
- Getting a string with the first character of string capitalized `mb_ucfirst()`;
- Checking whether the string is GUID `isGuid()`;
- Getting readable GUID from binary string LDAP `GuidToString()`;
- Getting GUID for LDAP query from readable GUID string `GuidStringToLdap()`;
- Analog of PHP function `str_pad()` for using unicode `mb_str_pad()`;
- Getting unicode char by its code `unichr()`;
- Checking whether the array is zero-indexed and sequential `isAssoc()`;
- Checking string is binary `isBinary()`;
- Getting information about the current language of the UI and converting it.

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

[](#installation)

1. Install the Plugin using composer: `composer require anklimsk/cakephp-basic-functions`
2. Add the next line to the end of the file `app/Config/bootstrap.php`:

    ```
    CakePlugin::load('CakeBasicFunctions', ['bootstrap' => true]);
    ```

Using
-----

[](#using)

[Using this plugin](docs/USING.md)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~96 days

Recently: every ~119 days

Total

6

Last Release

2405d ago

Major Versions

v0.4.2 → v1.0.02018-10-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42044955?v=4)[Andrey Klimov](/maintainers/anklimsk)[@anklimsk](https://github.com/anklimsk)

---

Top Contributors

[![anklimsk](https://avatars.githubusercontent.com/u/42044955?v=4)](https://github.com/anklimsk "anklimsk (76 commits)")

---

Tags

cakephp-plugincakephp2

### Embed Badge

![Health badge](/badges/anklimsk-cakephp-basic-functions/health.svg)

```
[![Health](https://phpackages.com/badges/anklimsk-cakephp-basic-functions/health.svg)](https://phpackages.com/packages/anklimsk-cakephp-basic-functions)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mautic/core

Mautic Open Source Distribution

10.0k2.6k9](/packages/mautic-core)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)

PHPackages © 2026

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