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

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

zodimo/base-return
==================

Basic types that communicates the possibility of failure and optional values.

0.7.1(1y ago)11605mitPHPPHP ~7.4|~8

Since Aug 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zodimo/php-base-return)[ Packagist](https://packagist.org/packages/zodimo/base-return)[ Fund](https://ko-fi.com/zodimo)[ RSS](/packages/zodimo-base-return/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (27)Used By (5)

Base Return
===========

[](#base-return)

2 base return type:

- Result : represents the possibility of failure.
- Option : represents an optional value

Result
======

[](#result)

The factory methods on result are:

- succeed , and should be read as, succeed with this $value as success.
- fail, and should be read as, fail with this $value as failure.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance40

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity40

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

Recently: every ~22 days

Total

26

Last Release

502d ago

PHP version history (2 changes)0.1.0PHP ~7.4|8

0.1.1PHP ~7.4|~8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5030404?v=4)[Jaco Labuschagne](/maintainers/zodimo)[@zodimo](https://github.com/zodimo)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[yii2mod/yii2-star-rating

Star rating widget based on jQuery Raty https://github.com/wbotelhos/raty

1915.5k](/packages/yii2mod-yii2-star-rating)[kelunik/retry

A tiny library for retrying failed operations.

1621.1k7](/packages/kelunik-retry)[inspiredminds/contao-fieldset-duplication

Contao extension to allow the duplication of form fieldsets in the front end by the user for additional input fields.

158.6k2](/packages/inspiredminds-contao-fieldset-duplication)

PHPackages © 2026

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