PHPackages                             globalis/wp-cubi-helpers - 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. globalis/wp-cubi-helpers

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

globalis/wp-cubi-helpers
========================

Collection of wp-cubi functions for WordPress

1.0.6(11mo ago)525.5k↓36.3%1[2 PRs](https://github.com/globalis-ms/wp-cubi-helpers/pulls)7GPL-2.0PHPPHP &gt;=8.0

Since Aug 10Pushed 11mo ago6 watchersCompare

[ Source](https://github.com/globalis-ms/wp-cubi-helpers)[ Packagist](https://packagist.org/packages/globalis/wp-cubi-helpers)[ Docs](https://github.com/globalis-ms/wp-cubi-helpers)[ RSS](/packages/globalis-wp-cubi-helpers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (29)Used By (7)

[wp-cubi-helpers](https://github.com/globalis-ms/wp-cubi-helpers)
=================================================================

[](#wp-cubi-helpers)

[![Build Status](https://camo.githubusercontent.com/bb6ce77ce03bf1400fc853575962d4385511e14eaf00e80d83b3b523c0be7753/68747470733a2f2f7472617669732d63692e6f72672f676c6f62616c69732d6d732f77702d637562692d68656c706572732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/globalis-ms/wp-cubi-helpers)[![Latest Stable Version](https://camo.githubusercontent.com/833aaf6a3059339ac015a2a74dcf030c3f8abddf969327e8c39b2d10ed7909c1/68747470733a2f2f706f7365722e707567782e6f72672f676c6f62616c69732f77702d637562692d68656c706572732f762f737461626c65)](https://packagist.org/packages/globalis/wp-cubi-helpers)[![License](https://camo.githubusercontent.com/d1bb9f26818dca51aeb48f72355b0c725ce3726bf469bb09413969a27ffd643a/68747470733a2f2f706f7365722e707567782e6f72672f676c6f62616c69732f77702d637562692d68656c706572732f6c6963656e7365)](https://github.com/globalis-ms/wp-cubi-helpers/blob/master/LICENSE.md)

Collection of wp-cubi functions for WordPress

[![wp-cubi](https://github.com/globalis-ms/wp-cubi/raw/master/.resources/wp-cubi-500x175.jpg)](https://github.com/globalis-ms/wp-cubi/)

Requirements
------------

[](#requirements)

- PHP 8.0, 8.1 or 8.2

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

[](#installation)

- `composer require globalis/wp-cubi-helpers`

Available functions
-------------------

[](#available-functions)

### Cache

[](#cache)

- `flush_cache_all()`
- `flush_cache_wpdb()`
- `flush_cache_object()`
- `get_size_cache_wpdb(): int`
- `get_size_cache_object(): int`
- `reset_cache_wpdb(int $size)`
- `reset_cache_object(int $size)`
- `pop_cache_wpdb()`
- `pop_cache_object()`
- `savequeries_enabled(): bool`

### Debug

[](#debug)

- `mysql_enable_nocache_mod()`
- `mysql_disable_nocache_mod()`
- `query_set_nocache(string $query): string`
- `time_start(string $timer = 'default'): float`
- `time_elapsed(string $timer = 'default', bool $human = true)`
- `memory_get_usage_kb(bool $human = true, bool $real_usage = false)`
- `memory_get_usage_mb(bool $human = true, bool $real_usage = false)`
- `memory_get_peak_usage_kb(bool $human = true, bool $real_usage = false)`
- `memory_get_peak_usage_mb(bool $human = true, bool $real_usage = false)`
- `memory_usage_format(float $usage, string $unit, bool $human)`

### Filters

[](#filters)

- `add_filter(string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1)`
- `add_action(string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1)`
- `remove_filter_anonymous_object(string $tag, string $class_name, string $method_name, int $priority = 10): bool`

### Mails

[](#mails)

- `wp_mail_html($to, string $subject, string $message, $headers = [], $attachments = []): bool`

### Permalinks

[](#permalinks)

- `get_permalink_by_template(string $template, $default = false)`

### Templating

[](#templating)

- `include_template_part($file, $data = [], $return = false)`

### Urls

[](#urls)

- `get_current_url(bool $remove_query_args = false): string`
- `current_url_starts_with(string $search, bool $remove_query_args = false): bool`
- `current_url_ends_with(string $search, bool $remove_query_args = false): bool`

### Utils

[](#utils)

- `str_starts_with(string $string, string $search): bool`
- `str_ends_with(string $string, string $search): bool`
- `trigger_404(\WP_Query $query = null)`
- `override_php_limits(int $time_limit = 604800, string $memory_limit = '512M')`

Development
-----------

[](#development)

Before opening pull requests, please check and apply project coding standards with `./vendor/bin/phpcs .` and/or `./vendor/bin/phpcbf .`

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance51

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~114 days

Recently: every ~478 days

Total

26

Last Release

344d ago

Major Versions

0.3.5 → 1.0.02019-10-14

PHP version history (4 changes)0.3.0PHP &gt;=7.0

1.0.0PHP &gt;=7.1

1.0.1PHP &gt;=7.2

1.0.5PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd8698f16f37576ccaab853278c3a85e7149237662d7062fea863574a5b8988c?d=identicon)[globalis](/maintainers/globalis)

---

Top Contributors

[![pierre-dargham](https://avatars.githubusercontent.com/u/6932545?v=4)](https://github.com/pierre-dargham "pierre-dargham (32 commits)")[![sandrafrade](https://avatars.githubusercontent.com/u/12816755?v=4)](https://github.com/sandrafrade "sandrafrade (3 commits)")[![davddo](https://avatars.githubusercontent.com/u/5182811?v=4)](https://github.com/davddo "davddo (1 commits)")

---

Tags

composerwordpresshelperswpfunctionssnippetswp-cubiglobalis

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/globalis-wp-cubi-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/globalis-wp-cubi-helpers/health.svg)](https://phpackages.com/packages/globalis-wp-cubi-helpers)
```

###  Alternatives

[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)[justcoded/wordpress-theme-boilerplate

WordPress theme boilerplate with better code structure and OOP support.

563.9k1](/packages/justcoded-wordpress-theme-boilerplate)

PHPackages © 2026

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