PHPackages                             arntech/card - 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. arntech/card

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

arntech/card
============

ARNTech card helping library.

v0.0.1(6y ago)131GPL-3.0-onlyPHPPHP ^5.6 || ^7

Since Jan 27Pushed 6y ago3 watchersCompare

[ Source](https://github.com/ARNTechnology/card)[ Packagist](https://packagist.org/packages/arntech/card)[ RSS](/packages/arntech-card/feed)WikiDiscussions master Synced 1mo ago

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

arntech/card
============

[](#arntechcard)

[![Source Code](https://camo.githubusercontent.com/6bd1a0133468efbb3fb7933a2e830816ccf4fdd6dd27c988c8be1183d10ae1dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d61726e746563682f636172642d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/ARNTechnology/card)[![Latest Version](https://camo.githubusercontent.com/60f432dd0f13268d5e9f1856e4d346874433f8d1286ccd341c62ccdcdc1cc1db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726e746563682f636172642e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/arntech/card)[![Software License](https://camo.githubusercontent.com/d2a1fa860cf198f245d99243cb1c862a93836061d3c3132e2c3886f8a244b433/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61726e746563682f636172642e7376673f7374796c653d666c61742d737175617265)](https://github.com/ARNTechnology/card/blob/master/LICENSE)[![PHP Version](https://camo.githubusercontent.com/0024b589c138b9154e34205ecc3265c0052552cc3abb8de0f9b3a4cfa00a8f1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61726e746563682f636172642e7376673f7374796c653d666c61742d737175617265)](https://php.net)[![Total Downloads](https://camo.githubusercontent.com/303d18e29c95c7ba0314c9c31c859029c58f2e791c7af09d7ee8b1ab5bf6f618/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61726e746563682f636172642e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d6d656469756d76696f6c6574726564)](https://packagist.org/packages/arntech/card)

An implementation of [ISO/IEC 7812](https://en.wikipedia.org/wiki/ISO/IEC_7812) and [ISO/IEC 7812-1](https://www.iso.org/obp/ui/#iso:std:iso-iec:7812:-1:ed-5:v1:en)

Installation
------------

[](#installation)

The preferred method of installation is via \[Composer\]\[\]. Run the following command to install the package and add it as a requirement to your project's `composer.json`:

```
composer require arntech/card
```

Usage/Examples
--------------

[](#usageexamples)

```
use ARNTech\Card\Model\Financial\Card as FinancialCard;
use ARNTech\Card\Model\Financial\Virtual\Card as VirtualCard;
use ARNTech\Card\Model\CardNumber;
use ARNTech\Card\Model\LuhnCardNumber;

$testCardNumber = '44823300xxxx2314'; // this should be a valid card number
$cardExpiration = '0222';
$card = new CardNumber('1111');
echo $card; //prints 1111xxxxxxxx1111
echo $card->getType();//prints 1
echo $card->getTypeTest();//prints Airlines
echo $card->getPlainNumber();//prints 1111 - it's not advised to use it unless explicitly needed

$card = new CardNumber('01111');//throws an exception

$card = new LuhnCardNumber('1111');//throws an exception as the card does not validate Luhn Algorithm
$card = new LuhnCardNumber($testCardNumber);//passes luhn validation
//LuhnCardNumber extends CardNumber

$card = new FinancialCard($testCardNumber, $cardExpiration);//passes luhn validation
echo json_encode($card); //prints {"number":"4482xxxxxxxx2314","expiration":"02-2022"}
$card = new FinancialCard($testCardNumber, '02/21');//passes luhn validation
echo json_encode($card); //prints {"number":"4482xxxxxxxx2314","expiration":"02-2021"}
echo $card->getNumber()->getVendor();//prints 1
echo $card->getNumber()->getVendorName();//prints Visa

$card = new VirtualCard($testCardNumber, $cardExpiration, '123');
//VirtualCard extends FinancialCard
echo $card->isExpired()?'true':'false';//prits false
echo json_encode($card);//prints {"number":"4482xxxxxxxx2314","expiration":"02-2022","cvv2":"123"}
$card=new VirtualCard($testCardNumber, $cardExpiration, '1234');//throws Cvv2Exception
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

2302d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cf9a1274de5297ee35726da23eaa626551cb640d3ef536b18ccf24be517aa92?d=identicon)[arntech](/maintainers/arntech)

---

Top Contributors

[![ARNTechnology](https://avatars.githubusercontent.com/u/59684052?v=4)](https://github.com/ARNTechnology "ARNTechnology (2 commits)")[![alxnegrila](https://avatars.githubusercontent.com/u/4835042?v=4)](https://github.com/alxnegrila "alxnegrila (1 commits)")

---

Tags

cardccvirtualvirtual cardcvvcvv2

### Embed Badge

![Health badge](/badges/arntech-card/health.svg)

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

###  Alternatives

[depsimon/laravel-wallet

Easy to use virtual wallet for your app

9521.6k1](/packages/depsimon-laravel-wallet)[ericlagarda/nova-text-card

A custom card for Laravel Nova to show Text in cards with some good options

20388.6k2](/packages/ericlagarda-nova-text-card)[digital-creative/resource-navigation-link

Create links to internal or external resources.

1044.0k](/packages/digital-creative-resource-navigation-link)

PHPackages © 2026

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