PHPackages                             aaemnnosttv/purity - 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. aaemnnosttv/purity

ActiveLibrary

aaemnnosttv/purity
==================

A conflict-free utility library

58PHP

Since Sep 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aaemnnosttv/purity)[ Packagist](https://packagist.org/packages/aaemnnosttv/purity)[ RSS](/packages/aaemnnosttv-purity/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

purity
======

[](#purity)

A conflict-free utility library.

[![Build Status](https://camo.githubusercontent.com/3a0de6c283c5a876a55a54db744225bfeee43e4f451c628eab2deb8dfca24c0a/68747470733a2f2f7472617669732d63692e6f72672f6161656d6e6e6f737474762f7075726974792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/aaemnnosttv/purity)

Overview
--------

[](#overview)

Purity is an experimental library aimed at providing utility functions and classes without the risk of conflicting with any other dependencies (including itself).

This is accomplished primarily by composing the entire codebase with anonymous functions and classes. Combined with a simple file-based structure, utilities can be easily accessed by name, without leaving any footprint on any namespace.

Basic Usage
-----------

[](#basic-usage)

Because the API is exposed through anonymous components, autoloading via Composer is not possible.

Instead, all components are made available through a Factory which is retrieved by `factory.php`.

```
# ./ current directory
# ./purity/
$factory = include 'purity/factory.php';
```

From here you can retrieve a component by accessing it as a property, or calling it as a method.

```
$each = $factory->each;
$each($iterable, function ($item) {
    // do something
});

// OR

$factory->each($iterable, function ($item) {
    // do something
});
```

Reference Safety
----------------

[](#reference-safety)

Each instance returned from the factory is a copy of its source, no two are the same.

That means...

```
$factory->each !== $factory->each
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![aaemnnosttv](https://avatars.githubusercontent.com/u/1621608?v=4)](https://github.com/aaemnnosttv "aaemnnosttv (11 commits)")

### Embed Badge

![Health badge](/badges/aaemnnosttv-purity/health.svg)

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

PHPackages © 2026

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