PHP Classes

File: mongo.script

Recommend this page to a friend!
  Classes of Yorch Ponce   PHP IIN and BIN   mongo.script   Download  
File: mongo.script
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP IIN and BIN
Identify card issuer and bank from numbers
Author: By
Last change:
Date: 7 years ago
Size: 445 bytes
 

Contents

Class file image Download
// Add Header sed -i '1s/^/BIN;BRAND;BANK;CARD_TYPE;CARD_CATEGORY;COUNTRY;CC_ISO3166_1;CC_ISO_A3;COUNTRY_NUM;WEBSITE;PHONE; /' binbase.csv // Change , sed -i 's/,/./g' binbase.csv // Change ; sed -i 's/;/,/g' binbase.csv // Execute MongoImport mongoimport -u user -p password -d dbname -c binbase --type csv --file binbase.csv --headerline // Enter MongoDb Console and create index > db.binbase.ensureIndex({"BIN": 1}, {unique: true});