Skip to content

Commit

Permalink
Docs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Chekalskiy committed Jul 2, 2018
1 parent 65a5e31 commit 14c3c72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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.
Expand Down

0 comments on commit 14c3c72

Please sign in to comment.