PHPackages                             tobento/service-helper-function - 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. tobento/service-helper-function

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

tobento/service-helper-function
===============================

Support for helper functions management.

2.0(9mo ago)03154MITPHPPHP &gt;=8.4

Since Mar 14Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/tobento-ch/service-helper-function)[ Packagist](https://packagist.org/packages/tobento/service-helper-function)[ Docs](https://www.tobento.ch)[ RSS](/packages/tobento-service-helper-function/feed)WikiDiscussions 2.x Synced 3w ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (4)

HelperFunction Service
======================

[](#helperfunction-service)

With the HelperFunction Service you can easily manage your helper functions.

Table of Contents
-----------------

[](#table-of-contents)

- [Getting started](#getting-started)
    - [Requirements](#requirements)
    - [Highlights](#highlights)
    - [Example](#example)
- [Credits](#credits)

---

Getting started
===============

[](#getting-started)

Add the latest version of the HelperFunction service running this command.

```
composer require tobento/service-helper-function

```

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

[](#requirements)

- PHP 8.4 or greater

Highlights
----------

[](#highlights)

- Framework-agnostic, will work with any project

Example
-------

[](#example)

Here is a example of how to use the HelperFunction service.

```
// Create Functions.
$functions = new Functions();

// Set any data for later usage for your functions.
$functions->set('sitename', 'Your Sitename');

// Register a function file.
$functions->register(__DIR__.'/functions.php');

// Calling the function registered.
var_dump(sitename()); // string(13) "Your Sitename"

// Get the key set.
$keys = $functions->getKeys(); // ['sitename']
```

functions.php file example.

```
use Tobento\Service\HelperFunction\Functions;

if (!function_exists('sitename'))
{
    function sitename(): string
    {
        // Get the data from the Functions.
        return Functions::get('sitename');
    }
}
```

Credits
=======

[](#credits)

- [Tobias Strub](https://www.tobento.ch)
- [All Contributors](../../contributors)

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance58

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity75

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 ~275 days

Recently: every ~412 days

Total

7

Last Release

273d ago

Major Versions

1.x-dev → 2.02025-09-24

PHP version history (2 changes)1.0.0PHP &gt;=8.0

2.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/055d6a1b5c2384bb179c75ab0b55914231d898fdc4dffeb30770f81200e52206?d=identicon)[TOBENTOch](/maintainers/TOBENTOch)

---

Top Contributors

[![tobento-ch](https://avatars.githubusercontent.com/u/16684832?v=4)](https://github.com/tobento-ch "tobento-ch (34 commits)")

---

Tags

functionshelper-functionshelpersphphelperpackagefunctiontobento

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tobento-service-helper-function/health.svg)

```
[![Health](https://phpackages.com/badges/tobento-service-helper-function/health.svg)](https://phpackages.com/packages/tobento-service-helper-function)
```

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k447.1M9.0k](/packages/symfony-dependency-injection)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

562565.8k42](/packages/ecotone-ecotone)[laravelista/ekko

Framework agnostic PHP package for marking navigation items active.

274691.7k4](/packages/laravelista-ekko)[clausnz/php-helpers

A Collection of useful php helper functions.

389.8k](/packages/clausnz-php-helpers)[bayfrontmedia/php-array-helpers

Helper class to provide useful array functions.

1414.3k26](/packages/bayfrontmedia-php-array-helpers)

PHPackages © 2026

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