PHPackages                             jacques/luhn - 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. jacques/luhn

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

jacques/luhn
============

Luhn algorithm implementation

01.1kPHP

Since Jan 7Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Luhn
====

[](#luhn)

[![Latest Version on Packagist](https://camo.githubusercontent.com/87026bace703b43bd2d3ba2b0cbfc3364b316007eeaedbf9c754c1895c5a6ffe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706179627265616b2f6c75686e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jacques/luhn)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/348c0d71858a493041ef8188d00627ebfe155782e8bd3192781c79fe44f54c63/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f506179427265616b2f6c75686e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/PayBreak/luhn)[![Coverage Status](https://camo.githubusercontent.com/388a6f145c20d3a872323b1e2597cdec8b4a385747a9b498372a2238e22a51d6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f706179627265616b2f6c75686e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/paybreak/luhn/code-structure)[![Quality Score](https://camo.githubusercontent.com/6e89bf22c8548bb795054cbdbc4bd190079b4af8991c00fce2c93ff48e663f4f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f706179627265616b2f6c75686e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/paybreak/luhn)[![Total Downloads](https://camo.githubusercontent.com/e19cf33260cdf9255e8e0832790a1d188f7d65094b6eaf1edd2d3b142f8fa632/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706179627265616b2f6c75686e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/paybreak/luhn)

Install
-------

[](#install)

Via Composer

```
$ composer require jacques/luhn
```

Usage
-----

[](#usage)

```
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/abeb87a2331a55b4877d22dea70c2bdd78110e48c647eebef9b261ce887d08d9?d=identicon)[jacques](/maintainers/jacques)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[symfony/polyfill-intl-idn

Symfony polyfill for intl's idn\_to\_ascii and idn\_to\_utf8 functions

3.4k806.5M131](/packages/symfony-polyfill-intl-idn)[cweagans/composer-patches

Provides a way to patch Composer packages.

1.7k99.0M878](/packages/cweagans-composer-patches)

PHPackages © 2026

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