Skip to content

Commit 2f4f8c3

Browse files
authored
Merge pull request #1 from androzd/master
prepare for laravel
2 parents b2f96e8 + 9d18b2c commit 2f4f8c3

12 files changed

+543
-57
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ One day I will add other crypto currencies. Or how about you? :)
77

88

99
```php
10-
use Murich\PhpCryptocurrencyAddressValidation\Validation\BTC as BTCValidator;
10+
use Merkeleon\PhpCryptocurrencyAddressValidation\Validation;
1111

12-
$validator = new BTCValidator('1QLbGuc3WGKKKpLs4pBp9H6jiQ2MgPkXRp');
13-
var_dump($validator->validate());
12+
$validator = Validation::make('BTC');
13+
var_dump($validator->validate('1QLbGuc3WGKKKpLs4pBp9H6jiQ2MgPkXRp'));
1414

1515
```

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "murich/php-cryptocurrency-address-validation",
2+
"name": "Merkeleon/php-cryptocurrency-address-validation",
33
"description": "Cryptocurrency address validation. Currently supports litecoin and bitcoin.",
44
"authors": [
55
{
@@ -13,7 +13,7 @@
1313
},
1414
"autoload": {
1515
"psr-4": {
16-
"Murich\\PhpCryptocurrencyAddressValidation\\": "src"
16+
"Merkeleon\\PhpCryptocurrencyAddressValidation\\": "src"
1717
}
1818
}
1919
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace Merkeleon\PhpCryptocurrencyAddressValidation\Exception;
4+
5+
6+
class CryptocurrencyValidatorNotFound extends \Exception
7+
{
8+
public function __construct($iso)
9+
{
10+
parent::__construct(sprintf('Cryptocurrency validator for %s not found', $iso));
11+
}
12+
}

0 commit comments

Comments
 (0)