PHPackages                             nochso/omni - 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. nochso/omni

ActiveLibrary

nochso/omni
===========

Helps with every day nuisances like path or EOL handling.

0.3.8(10y ago)05744MITPHPPHP ^5.6 || ^7.0

Since Feb 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/nochso/omni)[ Packagist](https://packagist.org/packages/nochso/omni)[ RSS](/packages/nochso-omni/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (4)Versions (12)Used By (4)

nochso/omni
===========

[](#nochsoomni)

[![License](https://camo.githubusercontent.com/80a7b83088f536ea5292a19987a87b9c1ef62dcffc1dbc49455e0aec4a569597/68747470733a2f2f706f7365722e707567782e6f72672f6e6f6368736f2f6f6d6e692f6c6963656e7365)](https://packagist.org/packages/nochso/omni)[![GitHub tag](https://camo.githubusercontent.com/b48548fe7b4f04e3ca2cc8df54f58cb1c926944ebfb18f2e24e91e575fd116fd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f6e6f6368736f2f6f6d6e692e737667)](https://github.com/nochso/omni/releases)[![Build Status](https://camo.githubusercontent.com/cf65ef354299645be73d55ec5561c9d96f52759dbaf7dc910cfb29a49d850abe/68747470733a2f2f7472617669732d63692e6f72672f6e6f6368736f2f6f6d6e692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nochso/omni)[![SensioLabsInsight](https://camo.githubusercontent.com/265c5add84f5b14d7cebdc349be3980af7aa77add85c8b7da45051b032bd2261/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66626330653535612d626334642d343933362d396432372d3732646662393133633332332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/fbc0e55a-bc4d-4936-9d27-72dfb913c323)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/be96ba4a35d4fc58d9261bc947c9c32b699974c6dc8dbd4e6912bc5a07159fc4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6f6368736f2f6f6d6e692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nochso/omni/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/a712820194c3ff55b23dc7320de07662ebba9bb7141323f7bb67b1cfa59e8655/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e6f6368736f2f6f6d6e692f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/nochso/omni?branch=master)

nochso/omni helps with every day nuisances like path or EOL handling.

- Simple solutions: This is not an alternative for more specific packages.
- Fully tested.
- Strictly follows [Semantic Versioning 2.0.0](http://semver.org/spec/v2.0.0.html).
- Clean code with [low complexity](https://www.cs.helsinki.fi/u/luontola/tdd-2009/ext/ObjectCalisthenics.pdf).
- No dependencies other than [symfony/polyfill-mbstring](https://packagist.org/packages/symfony/polyfill-mbstring).
- Not a framework.
- Not another object-based wrapper around the standard PHP library.
- One less reason to stumble upon the PHP.net comment section or have a Stackoverflow [deja-vu](https://i.imgur.com/SZPjHwz.jpg).

Table of contents:

- [nochso/omni](#nochsoomni)
- [Requirements](#requirements)
- [Installation](#installation)
- [API summary](#api-summary)
- [Change log](#change-log)
- [Contributing](#contributing)
- [License](#license)

Requirements
============

[](#requirements)

PHP 5.6.0, 7.0 or higher.

Installation and autoloading via Composer is recommended. You're free to use any other **PSR-4** compatible autoloader on folder `src/`.

Optional requirements
---------------------

[](#optional-requirements)

[`fabpot/php-cs-fixer`](https://packagist.org/packages/fabpot/php-cs-fixer) is required by namespace `nochso\Omni\PhpCsfixer`.

Installation
============

[](#installation)

```
composer require nochso/omni
```

You can now use the namespace `\nochso\Omni`.

API summary
===========

[](#api-summary)

For full API documentation, see [API.md](API.md).

This is a short summary of namespaces, classes, interfaces and traits.

- `N` `nochso\Omni`
    - `C` `ArrayCollection` wraps an array, providing common collection methods.
    - `C` `Arrays` class provides methods for array manipulation missing from default PHP.
    - `C` `Dot` allows easy access to multi-dimensional arrays using dot notation.
    - `C` `DotArray` holds a multi-dimensional array and wraps the static API of `\nochso\Omni\Dot`.
    - `C` `EOL` detects, converts and returns information about line-endings.
    - `C` `Exec` creates objects that help manage `\exec()` calls.
    - `C` `Folder` handles file system folders.
    - `C` `Multiline` string class for working with lines of text.
    - `C` `Numeric` validates and converts mixed types to numeric types.
    - `C` `OS` OS.
    - `C` `Path` helps keep the directory separator/implode/trim/replace madness away.
    - `C` `Strings` class provides methods for string handling missing from default PHP.
    - `C` `Type` returns PHP type information.
    - `C` `VcsVersionInfo` enriches an internal VersionInfo with the latest tag and current repository state.
    - `C` `VersionInfo` consists of a package name and version.
- `N` `nochso\Omni\Format`
    - `C` `Bytes` formats a quantity of bytes using different suffixes and binary or decimal base.
    - `C` `Duration` formats seconds or DateInterval objects as human readable strings.
    - `C` `Quantity` formats a string depending on quantity (many, one or zero).
- `N` `nochso\Omni\PhpCsFixer`
    - `C` `DefaultFinder` respects ignore files for Git, Mercurial and Darcs.
    - `C` `PrettyPSR` lies inbetween FixerInterface's PSR2 and Symfony level.

Change log
==========

[](#change-log)

See [CHANGELOG.md](CHANGELOG.md) for the full history of changes between releases.

\[0.3.8\]
---------

[](#038)

### Added

[](#added)

- Add placeholder `%s` for quantity in `Format\Quantity`.

### Changed

[](#changed)

- `DurationFormat` can now handle milliseconds.

\[0.3.7\] - 2016-04-16
----------------------

[](#037---2016-04-16)

### Fixed

[](#fixed)

- Fix handling of absolute `scheme://` paths in `Path::combine`

Contributing
============

[](#contributing)

Feedback, bug reports and pull requests are always welcome.

Please read the [contributing guide](CONTRIBUTING.md) for instructions.

License
=======

[](#license)

This project is released under the MIT license. See [LICENSE.md](LICENSE.md) for the full text.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

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

Total

12

Last Release

3680d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6887618?v=4)[Marcel Voigt](/maintainers/nochso)[@nochso](https://github.com/nochso)

---

Top Contributors

[![nochso](https://avatars.githubusercontent.com/u/6887618?v=4)](https://github.com/nochso "nochso (192 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nochso-omni/health.svg)

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

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B11.3k](/packages/symfony-console)[symfony/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[symfony/http-foundation

Defines an object-oriented layer for the HTTP specification

8.6k877.8M5.2k](/packages/symfony-http-foundation)[symfony/var-dumper

Provides mechanisms for walking through any arbitrary PHP variable

7.4k855.5M8.0k](/packages/symfony-var-dumper)[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[twig/twig

Twig, the flexible, fast, and secure template language for PHP

8.4k443.2M5.8k](/packages/twig-twig)

PHPackages © 2026

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