PHPackages                             timoreith/phpease - 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. timoreith/phpease

ActiveLibrary

timoreith/phpease
=================

PHP Helpers

1.3.0(11mo ago)0559↓100%MITPHPPHP &gt;=7.4CI passing

Since Aug 4Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/timoreith/PhPease)[ Packagist](https://packagist.org/packages/timoreith/phpease)[ RSS](/packages/timoreith-phpease/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

PhPease [![Continuous Integration](https://camo.githubusercontent.com/072f59318332c195895370b4bab0a1a306a55e91c2be1ebd97d29ad479d8a8ee/68747470733a2f2f62616467656e2e6e65742f6769746875622f636865636b732f74696d6f72656974682f506850656173652f6d61696e)](https://github.com/timoreith/PhPease/actions) [![Latest Release](https://camo.githubusercontent.com/545c064bcb23a5fc586454bc60c8cee797584a08029a3ae7bbb3d4b892518880/68747470733a2f2f62616467656e2e6e65742f6769746875622f72656c656173652f74696d6f72656974682f50685065617365)](https://github.com/timoreith/PhPease/releases/latest)
===========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#phpease--)

Little PHP helpers with the purpose of easing and abstracting code for recurring tasks.

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

[](#installation)

To install the package, use Composer:

```
composer require timoreith/phpease
```

Usage Examples
--------------

[](#usage-examples)

Here are some examples of how to use the classes and functions provided by this package:

### ResultContainer

[](#resultcontainer)

```
use PhPease\ResultContainer;

$result = new ResultContainer();
$result->setSuccess(true)
       ->setMessage('Operation successful')
       ->setResult(['data' => 'value']);

if ($result->isSuccess()) {
    $result = $result->getResult();
} else {
    echo $result->getMessage();
}
```

### var\_to\_array

[](#var_to_array)

```
use function PhPease\Variable\var_to_array;

// Example 1: Convert a string to an array
$string = "apple, banana, cherry";
$array = var_to_array($string);
print_r($array); // Output: ['apple', 'banana', 'cherry']

// Example 2: Convert a string to an array and apply a callback
$string = "1, 2, 3";
$array = var_to_array($string, 'intval');
print_r($array); // Output: [1, 2, 3]
```

Running Tests
-------------

[](#running-tests)

To run the tests, use PHPUnit:

```
./vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Feel free to contribute by submitting issues or pull requests. Please follow the coding standards and write tests for new features.

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance52

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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.

###  Release Activity

Cadence

Every ~150 days

Total

5

Last Release

359d ago

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

1.1.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/33c99ac4655704be5c5a3c0629117ae1dec58523e5785d969c2da66b47ed52bf?d=identicon)[timoreith](/maintainers/timoreith)

---

Top Contributors

[![timoreith](https://avatars.githubusercontent.com/u/3358162?v=4)](https://github.com/timoreith "timoreith (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/timoreith-phpease/health.svg)

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

PHPackages © 2026

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