PHPackages                             shaheryarmahmod/luhnalgorithm - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. shaheryarmahmod/luhnalgorithm

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

shaheryarmahmod/luhnalgorithm
=============================

Luhn Algorithm Implementation to validate Debit &amp; Credit Cards and IMEI numbers.

v1.0(5y ago)08UnlicensePHP

Since Aug 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ShaheryarMahmod/LuhnAlgorithm)[ Packagist](https://packagist.org/packages/shaheryarmahmod/luhnalgorithm)[ RSS](/packages/shaheryarmahmod-luhnalgorithm/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Luhn Algorithm - PHP
====================

[](#luhn-algorithm---php)

Luhn Algorithm Implementation in PHP to validate Debit &amp; Credit Cards &amp; IMEI numbers.

### Composer

[](#composer)

```
composer require shaheryarmahmod/luhnalgorithm

```

Example
-------

[](#example)

```
