PHPackages                             twincitiespublictelevision/libpbsauth - 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. twincitiespublictelevision/libpbsauth

ActiveLibrary

twincitiespublictelevision/libpbsauth
=====================================

General structures for working with PBS Sign In auth data

v2.1.0(4y ago)03proprietaryPHPPHP &gt;=7.1CI failing

Since Nov 29Pushed 4y ago6 watchersCompare

[ Source](https://github.com/twincitiespublictelevision/libpbsauth)[ Packagist](https://packagist.org/packages/twincitiespublictelevision/libpbsauth)[ RSS](/packages/twincitiespublictelevision-libpbsauth/feed)WikiDiscussions master Synced 2mo ago

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

libpbsauth
==========

[](#libpbsauth)

[![CircleCI](https://camo.githubusercontent.com/6aeb07c2efc5bdf2bb742a989671e6ee0989111e174037bfdf9662a1e201ae45/68747470733a2f2f636972636c6563692e636f6d2f67682f7477696e6369746965737075626c696374656c65766973696f6e2f6c6962706273617574682f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/twincitiespublictelevision/libpbsauth/tree/master)

`libpbsauth` is a small package containing a few classes for structured usage of PBS Sign In auth data.

---

Overview
--------

[](#overview)

Provides classes for `Owner`, `VPPA`, and `Token` objects, along with a wrapper class `PBSAuth`. Creating a record returns a `*Result` class. The result encapsulates either the created object or the error depending on the success of call.

Usage
-----

[](#usage)

Documentation can be found at

Result classes provide a return style for capturing the success or failure of a given operation in a single return value. The value or error can then be extracted from the result by the calling code and be conditionally used. An **ok** value represents the success of an operation, whereas an **err** value represents the failure of an operation.

When attempting to parse an array, stdClass, or string an ok will be returned if the entire parsing of the record succeeds. If any of the steps fail then an err is returned containing the failure.

An example of generic usage of a Result:

```
$resultA = Result::ok("foo");
echo $resultA->value(); // foo

$resultB = Result::err(new \Exception("Bar error");
echo $resultB->value(); // PHP Fatal error:  Uncaught exception ...
```

To safely handle a result and extract its value the caller can use either conditionals or try / catch syntax

```
$resultA = Result::ok("foo");

if ($resultA->isOk()) {
  echo $result->value(); // foo
} else {
  // ...
}

$resultB = Result::err(new \Exception("Bar error");

try {
  echo $resultB->value();
} catch (\Exception $e) {
  echo $e->getMessage(); // Bar error
}
```

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1

Install
-------

[](#install)

1. Add to the **repositories** key of your **composer.json** file:

```
{
  "type": "vcs",
  "url": "https://github.com/twincitiespublictelevision/libpbsauth.git"
}

```

2. Run `composer require twincitiespublictelevision/libpbsauth` to pull in the package

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.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 ~609 days

Total

3

Last Release

1501d ago

Major Versions

v1.0.0 → v2.0.02022-03-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/ecb95c2f8a6370455d5a7acfdbc1b8f5f3c9f24619396f5a93a8b285c3c42ff5?d=identicon)[TPT Webmaster](/maintainers/TPT%20Webmaster)

---

Top Contributors

[![augustuswm](https://avatars.githubusercontent.com/u/1377730?v=4)](https://github.com/augustuswm "augustuswm (25 commits)")[![tptwebmaster](https://avatars.githubusercontent.com/u/25251160?v=4)](https://github.com/tptwebmaster "tptwebmaster (2 commits)")[![cwood821](https://avatars.githubusercontent.com/u/7462489?v=4)](https://github.com/cwood821 "cwood821 (1 commits)")[![dkittels](https://avatars.githubusercontent.com/u/229056?v=4)](https://github.com/dkittels "dkittels (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/twincitiespublictelevision-libpbsauth/health.svg)

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

PHPackages © 2026

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