From 14c3c729d73f530ee4a638a83181427adac344ba Mon Sep 17 00:00:00 2001 From: Ilya Chekalskiy Date: Mon, 2 Jul 2018 21:45:51 +0200 Subject: [PATCH] Docs changes --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f7066d..31f38f0 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ composer require chekalskiy/php-bank-db ### Basic usage ```php -$card_prefix = $_GET['card_prefix']; // we only need first 6 digits +$card_prefix = '5275 9400 0000 0000'; // we only need first 6 digits but it could be the whole card number try { $bank_db = new BankDb(); @@ -32,6 +32,10 @@ try { } ``` +### About database + +We use simple PHP-file with an array inside (it's regenerates every time ramoona's repository is updated). It's very fast and simple way to work with data because of opcache enabled by default in PHP 7. But you can extend `BankDB` class to make it work with redis or something, but for most cases compiled php-file is OK. + ### Contributions Feel free to open [an issue](https://github.com/chekalskiy/php-bank-db/issues) on every question you have.