PHPackages                             axelitus/base - 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. axelitus/base

Abandoned → [norse-blue/scalar-objects](/?search=norse-blue%2Fscalar-objects)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

axelitus/base
=============

A framework agnostic PHP package that contains \_extensions\_ and helpers for the PHP primitive types (strings, numbers, array, etc.). It also contains common interfaces for \_new\_ types like collections, etc.

0.9(11y ago)576MITPHPPHP &gt;=5.4.9

Since Aug 8Pushed 9y ago2 watchersCompare

[ Source](https://github.com/axelitus/php-base)[ Packagist](https://packagist.org/packages/axelitus/base)[ Docs](http://axelitus.github.io/php-base)[ RSS](/packages/axelitus-base/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (16)Used By (0)

Package axelitus/base
=====================

[](#package-axelitusbase)

A framework agnostic PHP package that contains *extensions* and helpers for the PHP primitive types (strings, numbers, array, etc.). It also contains common interfaces for *new* types like dot-notated arrays, collections, etc.

Package Information
-------------------

[](#package-information)

- **Package:** axelitus/base [![Dependencies Status](https://camo.githubusercontent.com/0212a20fac62cad2ad7d778eac41a9aa9c4a6e3fab9ad128cec8d225c1f6ef95/687474703a2f2f646570656e64696e672e696e2f6178656c697475732f7068702d626173652e706e67)](http://depending.in/axelitus/php-base) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/4e70c4fb51683fb7e94449f0ecd5ae2dfdc34e2cf3e2678e593bc9a28881785e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6178656c697475732f7068702d626173652f6261646765732f7175616c6974792d73636f72652e706e673f733d39646433623939326263326536393834613130386465623430646362383563396166393435316563)](https://scrutinizer-ci.com/g/axelitus/php-base/) [![Total Downloads](https://camo.githubusercontent.com/f20b166c256d73c618a7bd9de58935573fb8325441f2b11905ed1415968ea61a/68747470733a2f2f706f7365722e707567782e6f72672f6178656c697475732f626173652f646f776e6c6f6164732e737667)](https://packagist.org/packages/axelitus/base) [![License](https://camo.githubusercontent.com/3d90d4abb7ef9f45fa3821f374d358b3c74d92369e9aba2ec56bc02f3628589c/68747470733a2f2f706f7365722e707567782e6f72672f6178656c697475732f626173652f6c6963656e73652e737667)](https://packagist.org/packages/axelitus/base) [![Project Status](https://camo.githubusercontent.com/7ff13dd0a1dbe40cfc374989a5c65d07c12fbee1c88bf043a1e764a72cbaed28/68747470733a2f2f7374696c6c6d61696e7461696e65642e636f6d2f6178656c697475732f7068702d626173652e737667)](https://stillmaintained.com/axelitus/php-base)
- **Root Namespace:** axelitus\\Base
- **Author:** Axel Pardemann ()
- **Repository**: [axelitus/php-base](https://github.com/axelitus/php-base "axelitus/php-base at GitHub") at GitHub
- **Build Status (master):** [![Build Status](https://camo.githubusercontent.com/ed48cde5494a6545e6f5b75eea1e6b69ede3341408f3c3842cda26df95d9e885/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6178656c697475732f7068702d626173652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/axelitus/php-base) [![Latest Stable Version](https://camo.githubusercontent.com/da0c6f25723a0c13ad6dc1746bf54b01e25a649ba892e4128cca4da527e58286/68747470733a2f2f706f7365722e707567782e6f72672f6178656c697475732f626173652f762f737461626c652e737667)](https://packagist.org/packages/axelitus/base) [![Coverage Status](https://camo.githubusercontent.com/691001356aecfbe462778072ad5db40a3c3a52ab0117db87b374ce913544c8e6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6178656c697475732f7068702d626173652f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/axelitus/php-base)
- **Build Status (develop):** [![Build Status](https://camo.githubusercontent.com/64a481de75d2a0402efb5c634376136a9eef0f874ea9d777ed96dc651c985c7a/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6178656c697475732f7068702d626173652e706e673f6272616e63683d646576656c6f70)](http://travis-ci.org/axelitus/php-base) [![Latest Unstable Version](https://camo.githubusercontent.com/ea31b18bae6c5907b44e28e2bf9dd7e71c71d05d8dd9863badc61ae15c40333d/68747470733a2f2f706f7365722e707567782e6f72672f6178656c697475732f626173652f762f756e737461626c652e737667)](https://packagist.org/packages/axelitus/base) [![Coverage Status](https://camo.githubusercontent.com/589577aa74915124715d604913d8febf7bdcbfe4f7d8d229e49135c2fb9c8fe1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6178656c697475732f7068702d626173652f62616467652e706e673f6272616e63683d646576656c6f70)](https://coveralls.io/r/axelitus/php-base)
- **Composer Package:** [axelitus/base](http://packagist.org/packages/axelitus/base "axelitus/base at Packagist") at Packagist
- **Issue Tracker:** [axelitus/php-base](https://github.com/axelitus/php-base/issues "axelitus/php-base Issue Tracker at GitHub") Issue Tracker at GitHub

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

[](#requirements)

The requirements for this package to work are the following:

- PHP &gt;= 5.4.9 (it may work for previous 5.4.X versions but it is not tested).

Standards
---------

[](#standards)

This package is intended to follow some standards for easy contributions and usage. Recently there has been an initiative to standardize the interoperation of frameworks, though I think this easily extends to most pieces of code everyone is building. The group behind all this is the [PHP-FIG (Framework Interoperability Group)](http://www.php-fig.org), you should pay them a visit at their site.

There are already some standards marked as accepted (*final*): [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md), [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md), [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md), [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md).

**This package is intended to be PSR-2/PSR-4 compliant.**

Being PSR-2/PSR-4 compliant means this package follows a [guide for coding styles](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) and the developers and contributors should enforce this for everyone's benefit. It also means that it can be easily installed by using [Composer](getcomposer.org) from the [Packagist](http://packagist.org) package archive. Just follow the instructions in section [How to install](#how-to-install).

Contents
--------

[](#contents)

##### axelitus\\Base

[](#axelitusbase)

- **Arr** - Dot-notated array object.
- **BigFloat** - Float operations for big numbers.
- **BigInt** - Int operations for big numbers.
- **BigNum** - Numeric operations for big numbers.
- **Bool** - Boolean operations.
- **BoolAnd** - Boolean AND operations on values and arrays.
- **BoolEq** - Boolean EQ operations on values and arrays.
- **BoolNot** - Boolean NOT operations on values and arrays.
- **BoolOr** - Boolean OR operations on values and arrays.
- **BoolXor** - Boolean XOR operations on values and arrays.
- **Comparable** - Defines the interface for a comparable object.
- **Comparer** - Simple and flexible base comparer from which new comparers should be derived.
- **DotArr** - Dot-notated array operations.
- **Flag** - Bitwise flag operations.
- **Float** - Float operations.
- **Initiable** - Defines the interface for initiable classes (simulates a static constructor).
- **Int** - Int operations.
- **Num** - Numeric operations.
- **PropertyAccessible** - Allows derived class to use object property access syntax just be defining getters and setters.
- **Str** - String operations.
- **Traverser** - Array callback traverser.

##### axelitus\\Base\\Comparison

[](#axelitusbasecomparison)

- **BigFloatComparer** - BigFloat comparer implementation.
- **BigIntComparer** - BigInt comparer implementation.
- **BigNumComparer** - BigNum comparer implementation.
- **BoolComparer** - Bool comparer implementation.
- **FloatComparer** - Float comparer implementation.
- **IntComparer** - Int comparer implementation.
- **StrComparer** - Str comparer implementation.

How to install
--------------

[](#how-to-install)

To install this package and use it in your app just follow these instructions (if you haven't read the documentation from [Composer](http://getcomposer.org) please do so before you continue):

1. Download composer if you haven't already done so (use your preferred method). Example:

```
    $ curl -s https://getcomposer.org/installer | php

```

2. Place a `require` statement inside your `composer.json` file replacing `` with the desired version. Example:

```
    "require": {
        "axelitus/base": ""
    }

```

3. Run the composer installer to resolve dependencies and download the packages. Example:

```
    $ php composer.phar install

```

4. In order to use the packages you have to *load* the autoloader that was generated by composer (if you are using a framework, maybe this is already done automatically). Example:

```
    require 'vendor/autoload.php';

```

5. Finally just use the package classes as needed:

```
    axelitus\Base\[\...]::();

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Recently: every ~117 days

Total

14

Last Release

4065d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61386558d4fa03cc9de21d20e76f396d5568e0e647e1cdf18f12c87f1a5f87b5?d=identicon)[axelitus](/maintainers/axelitus)

---

Top Contributors

[![axelitus](https://avatars.githubusercontent.com/u/732441?v=4)](https://github.com/axelitus "axelitus (383 commits)")

---

Tags

arraystringcollectionbasicnumberprimitive

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/axelitus-base/health.svg)

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[aimeos/map

Easy and elegant handling of PHP arrays as array-like collection objects similar to jQuery and Laravel Collections

4.2k412.9k11](/packages/aimeos-map)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)[athari/yalinqo

YaLinqo, a LINQ-to-objects library for PHP

4561.2M5](/packages/athari-yalinqo)[phootwork/lang

Missing PHP language constructs

1224.8M8](/packages/phootwork-lang)[yansongda/supports

common components

211.4M31](/packages/yansongda-supports)

PHPackages © 2026

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