Skip to content

Commit 851ce52

Browse files
committed
Composer
1 parent 713b211 commit 851ce52

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ index.php
22

33
# Created by http://www.gitignore.io
44

5+
### Composer ###
6+
composer.phar
7+
vendor/
8+
9+
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
10+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
11+
composer.lock
12+
513
### Windows ###
614
# Windows image file caches
715
Thumbs.db

LuhnAlgorithm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function getCheckDigit() {
152152
* @param string $string String to "convert" to integer
153153
* @return string String containing only numbers
154154
*/
155-
public static function toInteger($string) {
155+
private static function toInteger($string) {
156156
return preg_replace("/[^\d]/", "", $string);
157157
}
158158

composer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "nekman/luhn-algorithm",
3+
"type": "library",
4+
"description": "Implementation of the Luhn algorithm in PHP",
5+
"keywords": ["luhn", "credit card", "identification number"],
6+
"homepage": "https://github.com/Ekman/Luhn-Algorithm",
7+
"license": "MIT",
8+
"authors": [{
9+
"name": "Niklas Ekman",
10+
"email": "nikl.ekman@gmail.com",
11+
"homepage": "http://www.codr.se",
12+
"role": "Developer"
13+
}],
14+
"require": {
15+
"php": ">=4.0.0"
16+
},
17+
"require-dev": {
18+
"phpunit/phpunit": "3.7.*"
19+
}
20+
}

0 commit comments

Comments
 (0)