PHPackages                             gerardbalaoro/cuttergen - 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. gerardbalaoro/cuttergen

ActiveLibrary

gerardbalaoro/cuttergen
=======================

Library of Congress Cutter Number Generation Library

v1.0.0-rc.1(6y ago)117MITPHPPHP &gt;=5.6

Since Sep 7Pushed 3y agoCompare

[ Source](https://github.com/GerardBalaoro/CutterGen)[ Packagist](https://packagist.org/packages/gerardbalaoro/cuttergen)[ RSS](/packages/gerardbalaoro-cuttergen/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

CutterGen
---------

[](#cuttergen)

Library of Congress Cutter Number Generation Library.

[![PHP from Packagist](https://camo.githubusercontent.com/e7f9fd507e779956950acaa46e86dc9347dd4be963b62d0c055d7af153159da0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f67657261726462616c616f726f2f63757474657267656e)](https://camo.githubusercontent.com/e7f9fd507e779956950acaa46e86dc9347dd4be963b62d0c055d7af153159da0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f67657261726462616c616f726f2f63757474657267656e)[![GitHub](https://camo.githubusercontent.com/a450060d7d3b8aca6eadbb3f4ca2f8229a9d48770df7a104cfbbdc23108e040c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f47657261726442616c616f726f2f43757474657247656e)](https://camo.githubusercontent.com/a450060d7d3b8aca6eadbb3f4ca2f8229a9d48770df7a104cfbbdc23108e040c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f47657261726442616c616f726f2f43757474657247656e)[![Packagist Version](https://camo.githubusercontent.com/e40fb152cdf6a8525d08f286a8e5ca888dee30d6b75029df72f108c029c87807/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67657261726462616c616f726f2f63757474657267656e)](https://camo.githubusercontent.com/e40fb152cdf6a8525d08f286a8e5ca888dee30d6b75029df72f108c029c87807/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67657261726462616c616f726f2f63757474657267656e)[![CircleCI](https://camo.githubusercontent.com/9e6b82ce7a49db9e6cb640c22080bde269e14e5ea57a327df1ba70aab6a99187/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f6769746875622f47657261726442616c616f726f2f43757474657247656e)](https://camo.githubusercontent.com/9e6b82ce7a49db9e6cb640c22080bde269e14e5ea57a327df1ba70aab6a99187/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f6769746875622f47657261726442616c616f726f2f43757474657247656e)

This package follows the specifications presented on the [Classification and Shelflisting Manual Instruction Sheet G63](https://www.loc.gov/aba/publications/FreeCSM/G063.pdf).

> **See demonstration on [PHP Sandbox](https://2oyzs.ciroue.com/)**.

### Installation

[](#installation)

```
composer require gerardbalaoro/cuttergen

```

### Basic Usage

[](#basic-usage)

```
/**
 * Initialize CutterGen instance, pass default expansion length (optional)
 *  - $length = 0 : no expansion
 *  - $length = -1 : expand all characters
 */
$cutter = new CutterGen\CutterGen(1);

/**
 * Can also set default expansion length using `setLength`
 */
$cutter->setLength(2);

/**
 * Generate cutter number (Prints: S658)
 */
echo $cutter->generate('Smith');

/**
 * Can also pass length (Prints: S65)
 */
echo $cutter->generate('Smith', 1);
```

### Handling Qa - Qt Initials

[](#handling-qa---qt-initials)

> For initials **Qa-Qt**, use numbers **2-29**

By default, the package assigns values to a character by its order in the English alpabeth, starting at 2. To customize, simple pass a callable object to the `setHandlder()` method.

```
$cutter = new CutterGen\CutterGen();

$cutter->setHandler('qa-qt', function($char) {
    if ($char == 'a') {
        return '5';
    }
    ...
});

// Prints: Q55
echo $cutter->generate('Qaldor')
```

### Reference

[](#reference)

- [Library of Congress Cutter Table](https://www.loc.gov/aba/pcc/053/table.html)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

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

Unknown

Total

1

Last Release

2439d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13101267?v=4)[Gerard Balaoro](/maintainers/GerardBalaoro)[@gerardbalaoro](https://github.com/gerardbalaoro)

---

Top Contributors

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

---

Tags

cutterlibrarylibrary-automationphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gerardbalaoro-cuttergen/health.svg)

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

PHPackages © 2026

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