PHPackages                             alexgo93/php\_pairs - 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. alexgo93/php\_pairs

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

alexgo93/php\_pairs
===================

library for pairs data structure

1.0.0(6y ago)04[1 PRs](https://github.com/alexgo93/Pair/pulls)MITPHPPHP 7.3.\*CI failing

Since Oct 29Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/alexgo93/Pair)[ Packagist](https://packagist.org/packages/alexgo93/php_pairs)[ RSS](/packages/alexgo93-php-pairs/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

Pair library
============

[](#pair-library)

[![Maintainability](https://camo.githubusercontent.com/319dbd4d151099819a3f122325c4b0f310b888f8438b487b18769e9b72b5eb3a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f63623832616134343236386564366230366466312f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/alexgo93/Pair/maintainability) [![Build Status](https://camo.githubusercontent.com/305f91a7941f07abca14406011008bdcb95a415939c579288104592e6c3b1813/68747470733a2f2f7472617669732d63692e6f72672f616c6578676f39332f506169722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alexgo93/Pair)

Installation
============

[](#installation)

composer require alexgo93/php\_pairs

Description
===========

[](#description)

This is the library for pair data structure.

Usage
=====

[](#usage)

#### Create pair:

[](#create-pair)

> $pair = new Pair($value1, $value2);

#### Get first value:

[](#get-first-value)

> $pair-&gt;car();

#### Get second value:

[](#get-second-value)

> $pair-&gt;cdr();

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance54

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f99c75ac2bc29a23bae1c17ad1d1f89318447eecb17f450c9fb263233787b30?d=identicon)[ogAlex](/maintainers/ogAlex)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/alexgo93-php-pairs/health.svg)

```
[![Health](https://phpackages.com/badges/alexgo93-php-pairs/health.svg)](https://phpackages.com/packages/alexgo93-php-pairs)
```

###  Alternatives

[fbf/laravel-youtube

A Laravel package to upload videos to a YouTube channel

954.2k](/packages/fbf-laravel-youtube)[quadrubo/filament-model-settings

This is my package filament-model-settings

1637.5k](/packages/quadrubo-filament-model-settings)[typicms/bootforms

Just a Formbuilder with some Bootstrap 5 specific conveniences. Remembers old input, retrieves error messages and handles all your boilerplate Bootstrap markup automatically.

1256.0k2](/packages/typicms-bootforms)[zmoyi/jstan

聚水潭-php-sdk

153.8k1](/packages/zmoyi-jstan)

PHPackages © 2026

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