PHPackages                             vyuldashev/cards - 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. vyuldashev/cards

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

vyuldashev/cards
================

111PHP

Since Sep 20Pushed 8y ago2 watchersCompare

[ Source](https://github.com/vyuldashev/cards)[ Packagist](https://packagist.org/packages/vyuldashev/cards)[ RSS](/packages/vyuldashev-cards/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Cards
=====

[](#cards)

This package provides an API for bank cards. Card object is a value object and cannot be modified. Also, this package takes care of secure serialization and deserialization of card information and provides an API for bin data information retrieval.

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

[](#installation)

You can install the package via composer:

```
composer require vyuldashev/cards
```

Usage
-----

[](#usage)

```
use Vyuldashev\Cards\Card;

Card::create('4916080075115045'); // Vyuldashev\Cards\Visa::class
Card::create('5258369670492716'); // Vyuldashev\Cards\MasterCard::class
```

Pan may also contain non-numeric characters, method `create` will remove these characters itself.

```
Card::create('4916-0800-7511-5045'); // 4916080075115045
```

Create card with passing expiration month, expiration year and cvv. Each argument is optional:

```
Card::create('4916080075115045', 3, 2021, 123);
```

If card type cannot be identified, `Unknown` card instance will be returned.

```
Card::create('8888888888888888'); // Vyuldashev\Cards\Unknown::class
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

bankbank-cardbindcardpanpci-dssphp7

### Embed Badge

![Health badge](/badges/vyuldashev-cards/health.svg)

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

###  Alternatives

[bmitch/churn-php

Discover files in need of refactoring.

1.4k1.5M12](/packages/bmitch-churn-php)[appwrite/php-runtimes

Appwrite repository for Cloud Function runtimes that contains the configurations and tests for all of the Appwrite runtime environments.

49227.2k2](/packages/appwrite-php-runtimes)

PHPackages © 2026

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