2017 © Pedro Peláez
 

library laravel-luhn-validator

A luhn algorithm validator for Laravel 4's Validator

image

hipsterjazzbo/laravel-luhn-validator

A luhn algorithm validator for Laravel 4's Validator

  • Thursday, June 26, 2014
  • by HipsterJazzbo
  • Repository
  • 0 Watchers
  • 3 Stars
  • 11,283 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Luhn Validator

A luhn algorithm validator for Laravel 4's Validator., (*1)

Installation

Start by adding this package to your composer.json:, (*2)

"require-dev": {
    "hipsterjazzbo/laravel-luhn-validator": "1.*"
}

Now you've got to update composer:, (*3)

$ composer update

And then add this package to the ServiceProviders array in your app/config/app.php:, (*4)

'HipsterJazzbo\LaravelLuhnValidator\LaravelLuhnValidatorServiceProvider'

Usage

Just specify the new rule when you're defining your rules:, (*5)

$rules = [
    'card_number' => [
        'required',
        'luhn'
    ]
];

Learn more about Laravel validation, (*6)

The Versions

26/06 2014

dev-master

9999999-dev

A luhn algorithm validator for Laravel 4's Validator

  Sources   Download

MIT

The Requires

 

by Caleb Fidecaro

26/06 2014

1.0

1.0.0.0

A luhn algorithm validator for Laravel 4's Validator

  Sources   Download

MIT

The Requires

 

by Caleb Fidecaro