PHPackages                             cebugle/laravel-credit-card-rule - 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. cebugle/laravel-credit-card-rule

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

cebugle/laravel-credit-card-rule
================================

Validate credit card number, expiration date, cvc

v2.0.0(2y ago)030Apache-2.0PHPPHP ^8.1

Since Mar 6Pushed 2y agoCompare

[ Source](https://github.com/cebugle/laravel-credit-card-validation)[ Packagist](https://packagist.org/packages/cebugle/laravel-credit-card-rule)[ RSS](/packages/cebugle-laravel-credit-card-rule/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

Laravel Credit Card Validation
==============================

[](#laravel-credit-card-validation)

This rule will validate that a given credit card **number**, **expiration date** or **cvc** is valid.

 [ ![](https://camo.githubusercontent.com/4f1402c598cfa588f10dd0d6ec3028ab5624d903b90faad5e2f4d826df5a8fa5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63656275676c652f6c61726176656c2d6372656469742d636172642d76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265) ](https://travis-ci.org/cebugle/laravel-credit-card-validation) [ ![](https://camo.githubusercontent.com/7b5eb83a15c90a8ef68f02141ebf7194251a86f79c9bf8a8b07566f3e2d809db/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f63656275676c652f6c61726176656c2d6372656469742d636172642d76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265) ](https://scrutinizer-ci.com/g/cebugle/laravel-credit-card-validation/code-structure/master/code-coverage) [ ![](https://camo.githubusercontent.com/e966f4fc2dd44002d05395aad69e7fbf2bce2f3401962b923192af67c9de9c1c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f63656275676c652f6c61726176656c2d6372656469742d636172642d76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265) ](https://scrutinizer-ci.com/g/cebugle/laravel-credit-card-validation) [ ![](https://camo.githubusercontent.com/b8e28cff279ec39608b8643343164c5c4af852f5e3be8bd9451c1f6a1a7f4cf0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63656275676c652f6c61726176656c2d6372656469742d636172642d76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265) ](https://github.com/cebugle/laravel-credit-card-validation/blob/master/LICENSE) [ ![](https://camo.githubusercontent.com/6f5c2c59a24fcb2c7e1c5e904a17cb30ddc929893cd3079515084b6136e19a4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63656275676c652f6c61726176656c2d6372656469742d636172642d72756c652e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/cebugle/laravel-credit-card-rule) [ ![](https://camo.githubusercontent.com/4e4781bd776c775d977a5f23ff5118a6221ca6ccff3bee744ee3b09091584df3/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40646c75616775652d626c75652e7376673f7374796c653d666c61742d737175617265) ](https://twitter.com/dluague)

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

[](#installation)

```
composer require cebugle/laravel-credit-card-rule
```

Usage
-----

[](#usage)

### As FormRequest

[](#as-formrequest)

```
