PHPackages                             cyberomulus/php-toolbox - 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. cyberomulus/php-toolbox

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

cyberomulus/php-toolbox
=======================

Simple php toolbox for not to reinvent the wheel!

v1.2(6y ago)020MITPHPPHP ^7.3CI failing

Since Jan 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/cyberomulus/phpToolbox)[ Packagist](https://packagist.org/packages/cyberomulus/php-toolbox)[ Docs](https://github.com/cyberomulus/phpToolbox)[ RSS](/packages/cyberomulus-php-toolbox/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

phpToolbox
==========

[](#phptoolbox)

[![Build Status](https://camo.githubusercontent.com/d757cb1a989c0caf424798518f6c6968448f6c596fdb5a679d216cb618a62c81/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63796265726f6d756c75732f706870546f6f6c626f782e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cyberomulus/phpToolbox)[![Coverage Status](https://camo.githubusercontent.com/e772359de7a6f42a0e477001e9eea4a54da2d699dcc097f0dcbdc50fe67139f3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f63796265726f6d756c75732f706870546f6f6c626f782f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/cyberomulus/phpToolbox?branch=master)

Simple php toolbox for not to reinvent the wheel!

Why this library ?
------------------

[](#why-this-library-)

Every day, we write the same functions for our different projects.
This library contains a multiple functions so as not to have to write them each time.

It also brings some advantages:

- All functions is tested by phpunit
- The functions are organized in a structured way in special classes.
    You can use a single class with a simple `new classOne()` or access the different class by a main class (useful for declaring as a service in a framework)
- A documentation with phpdoc

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

[](#requirements)

- php 7.3 or higher, if you use a lower version see [BRANCHES.md](BRANCHES.md)

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

[](#installation)

Download whith composer :

```
composer require cyberomulus/php-toolbox:1.2.*

```

How to use ?
------------

[](#how-to-use-)

#### By single class

[](#by-single-class)

For use a single class, you can simply create an instance to use it.

For example, use the functions of manipulation and verification of texts:

```
$textManip = new Cyberomulus\PhpToolbox\Text();
$bool = $textManip->startWith("simple example", "example");

```

#### By main class (for use by service)

[](#by-main-class-for-use-by-service)

If you use a framework, a good practice is to declare this lib as a service.
In order not to have to declare as many services as class, a class provider exists: `Cyberomulus\PhpToolbox\PhpToolbox\`.

Once the service is created, you will have access to each class containing the functions:

```
$textManip = $this->getService("phpToolBox")->getText();
$bool = $textManip->startWith("simple example", "example");

```

If you use Symfony &gt;4.0 you can use the bundle [cyberomulus/phpToolboxBundle](https://github.com/cyberomulus/phpToolboxBundle) for inject this class in a service.

Class list
----------

[](#class-list)

- [PhpToolbox](docs/00-PhpToolBox.md) : This class contains a getter for each of the individual classes. If you want to use this lib as a framework service, you can declare this class to use a single service
- [Text](docs/01-text.md) : This class contains useful functions for manipulating and verifying text
- [IO](docs/02-io.md) : This class contains useful functions for read and write (on filesystem, console, network)
- [Datetime](docs/03-datetime.md) : This class contains useful functions for manipulate date, time and timezone

Documentation
-------------

[](#documentation)

All functions have a phpdoc and doc inline.

Want more ?
-----------

[](#want-more-)

#### You just have to ask

[](#you-just-have-to-ask)

You can request a new function in [issue](https://github.com/cyberomulus/phpToolbox/issues)

#### Contribute

[](#contribute)

Your pull requests are welcome!!
Sharing is the strength of this lib.

Please read [branches schema](BRANCHES.md) and simply:

- fork from `master`
- create pull request to `master`

Contributors
------------

[](#contributors)

- Cyberomulus

License
-------

[](#license)

This library is open-source software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

3

Last Release

2291d ago

PHP version history (2 changes)V1.0PHP ^5.6 || ^7.0

v1.2PHP ^7.3

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpfunctionsToolbox

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cyberomulus-php-toolbox/health.svg)

```
[![Health](https://phpackages.com/badges/cyberomulus-php-toolbox/health.svg)](https://phpackages.com/packages/cyberomulus-php-toolbox)
```

###  Alternatives

[ilya/belt

A handful of tools for PHP developers.

70820.9k1](/packages/ilya-belt)[nilportugues/php_todo

Looks into the code using a user-defined list of to-do phrases and stops commit if the total amount increased or is above a threshold.

1210.0k](/packages/nilportugues-php-todo)

PHPackages © 2026

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