PHPackages                             touta/aria-runtime-php - 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. touta/aria-runtime-php

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

touta/aria-runtime-php
======================

ARIA runtime primitives for the Touta PHP ecosystem — Result, Failure, railway combinators, and HTTP contracts

v0.1.0(1mo ago)01—0%9MITPHPPHP ^8.3

Since Mar 20Pushed 1mo agoCompare

[ Source](https://github.com/toutaio/aria-runtime-php)[ Packagist](https://packagist.org/packages/touta/aria-runtime-php)[ RSS](/packages/touta-aria-runtime-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (9)

aria-runtime-php
================

[](#aria-runtime-php)

ARIA runtime primitives for the Touta PHP ecosystem.

Install
-------

[](#install)

```
composer require touta/aria-runtime-php
```

What's included
---------------

[](#whats-included)

- **Result** — Railway-oriented `Result` type with `Success` and `Failure` variants
- **StructuredFailure** — Immutable failure value object with code, message, and context
- **HTTP Contracts** — Minimal `RequestInterface` and `ResponseInterface`

Usage
-----

[](#usage)

```
use Touta\Aria\Runtime\Result;
use Touta\Aria\Runtime\Success;
use Touta\Aria\Runtime\StructuredFailure;

$result = Success::of(42);
$mapped = $result->map(fn(int $v) => $v * 2); // Success(84)

$failure = Result::failure(new StructuredFailure('NOT_FOUND', 'Resource not found'));
$recovered = $failure->recover(fn($e) => 'default'); // Success('default')
```

Quality
-------

[](#quality)

```
composer qa        # Full quality gate (lint + analyse + test)
composer test      # Run tests only
composer analyse   # PHPStan at max level
composer lint      # Check formatting
```

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

51d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/touta-aria-runtime-php/health.svg)

```
[![Health](https://phpackages.com/badges/touta-aria-runtime-php/health.svg)](https://phpackages.com/packages/touta-aria-runtime-php)
```

PHPackages © 2026

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