PHPackages                             jayin/luhn-php - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. jayin/luhn-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

jayin/luhn-php
==============

parser CCID implement in PHP

1.1.0(9y ago)0681MITPHP

Since Feb 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Jayin/luhn-php)[ Packagist](https://packagist.org/packages/jayin/luhn-php)[ RSS](/packages/jayin-luhn-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Luhn-PHP [![Latest Stable Version](https://camo.githubusercontent.com/104cfc672b185840d1780cf1ac8167e1b24acca62a7a5c65d5244e7ad95e5b81/68747470733a2f2f706f7365722e707567782e6f72672f6a6179696e2f6c75686e2d7068702f762f737461626c652e737667)](https://packagist.org/packages/jayin/luhn-php)
============================================================================================================================================================================================================================================================================================

[](#luhn-php-)

[Luhn algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm) Luhn算法PHP实现

安装
--

[](#安装)

```
composer require "jayin/luhn-php"
```

使用
--

[](#使用)

```
require_once("vendor/autoload.php");

echo \Jayin\Luhn::parser('7992739871x');
//=>  79927398713
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3401d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62f80da352033f962733c8ce149a74f1ea586ab9bcb6b805311281d9563509b7?d=identicon)[Jayin](/maintainers/Jayin)

---

Top Contributors

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

---

Tags

luhn-algorithmluhn-php

### Embed Badge

![Health badge](/badges/jayin-luhn-php/health.svg)

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[karriere/json-decoder

JsonDecoder implementation that allows you to convert your JSON data into PHP class objects

140439.4k12](/packages/karriere-json-decoder)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

46143.1k6](/packages/jstewmc-rtf)[json-mapper/laravel-package

The JsonMapper package for Laravel

25188.9k3](/packages/json-mapper-laravel-package)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)

PHPackages © 2026

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