PHPackages                             graham-campbell/result-type - 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. graham-campbell/result-type

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

graham-campbell/result-type
===========================

An Implementation Of The Result Type

v1.1.4(7mo ago)554427.4M↓11%119MITPHPPHP ^7.2.5 || ^8.0CI passing

Since Mar 21Pushed 3mo agoCompare

[ Source](https://github.com/GrahamCampbell/Result-Type)[ Packagist](https://packagist.org/packages/graham-campbell/result-type)[ GitHub Sponsors](https://github.com/GrahamCampbell)[ Fund](https://tidelift.com/funding/github/packagist/graham-campbell/result-type)[ RSS](/packages/graham-campbell-result-type/feed)WikiDiscussions 1.1 Synced 2w ago

READMEChangelog (10)Dependencies (2)Versions (12)Used By (9)

Result Type
===========

[](#result-type)

Result Type was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is an implementation of the result type. Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Result-Type/releases), [security policy](https://github.com/GrahamCampbell/Result-Type/security/policy), [license](LICENSE), [code of conduct](.github/CODE_OF_CONDUCT.md), and [contribution guidelines](.github/CONTRIBUTING.md).

[![Banner](https://user-images.githubusercontent.com/2829600/77233209-f86aae80-6b9d-11ea-9cef-81501c9e858d.png)](https://user-images.githubusercontent.com/2829600/77233209-f86aae80-6b9d-11ea-9cef-81501c9e858d.png)

[![Build Status](https://camo.githubusercontent.com/a5e35f886075ad07bd7d7fc0f03c4efa615972f5cbf32941d149a5049aea6de3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f47726168616d43616d7062656c6c2f526573756c742d547970652f74657374732e796d6c3f6c6162656c3d5465737473267374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Result-Type/actions?query=workflow%3ATests)[![StyleCI Status](https://camo.githubusercontent.com/65eff2ca32542d42c155b1e385768390290d6138d3d8ee508e6ecc0f3b86c605/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3234393032363532322f736869656c64)](https://github.styleci.io/repos/249026522)[![Software License](https://camo.githubusercontent.com/c090e080484e2a2bc766446291d04437db823929042bf614b26a1643660ddf6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e3f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Downloads](https://camo.githubusercontent.com/18666d0f932e3027e6e1776207f5051c301505adb3d3fe8bc094ab3c549cdb4b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67726168616d2d63616d7062656c6c2f726573756c742d747970653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/graham-campbell/result-type)[![Latest Version](https://camo.githubusercontent.com/848defb714c9ffc1e961bc8d61cfcf1a5b7834b0a5bef8da83dc5d65a52f9cdd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f47726168616d43616d7062656c6c2f526573756c742d547970653f7374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Result-Type/releases)

Installation
------------

[](#installation)

This version requires [PHP](https://www.php.net/) 7.2.5-8.5.

To get the latest version, simply require the project using [Composer](https://getcomposer.org/):

```
$ composer require "graham-campbell/result-type:^1.1"
```

Security
--------

[](#security)

If you discover a security vulnerability within this package, please send an email to . All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/GrahamCampbell/Result-Type/security/policy).

License
-------

[](#license)

Result Type is licensed under [The MIT License (MIT)](LICENSE).

For Enterprise
--------------

[](#for-enterprise)

Available as part of the Tidelift Subscription

The maintainers of `graham-campbell/result-type` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-graham-campbell-result-type?utm_source=packagist-graham-campbell-result-type&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance72

Regular maintenance activity

Popularity75

Solid adoption and visibility

Community21

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% 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 ~203 days

Recently: every ~291 days

Total

12

Last Release

103d ago

PHP version history (3 changes)v1.0.0PHP ^7.0|^8.0

v1.0.2PHP ^7.0 || ^8.0

v1.1.0PHP ^7.2.5 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (56 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

hacktoberfestGraham CampbellGrahamCampbellresultResult-Type

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/graham-campbell-result-type/health.svg)

```
[![Health](https://phpackages.com/badges/graham-campbell-result-type/health.svg)](https://phpackages.com/packages/graham-campbell-result-type)
```

###  Alternatives

[liliuwei/thinkphp-jump

适用于thinkphp6.0+的跳转扩展

2877.4k1](/packages/liliuwei-thinkphp-jump)

PHPackages © 2026

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