Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ One day I will add other crypto currencies. Or how about you? :)


```php
use Murich\PhpCryptocurrencyAddressValidation\Validation\BTC as BTCValidator;
use Merkeleon\PhpCryptocurrencyAddressValidation\Validation;

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

```
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "murich/php-cryptocurrency-address-validation",
"name": "Merkeleon/php-cryptocurrency-address-validation",
"description": "Cryptocurrency address validation. Currently supports litecoin and bitcoin.",
"authors": [
{
Expand All @@ -13,7 +13,7 @@
},
"autoload": {
"psr-4": {
"Murich\\PhpCryptocurrencyAddressValidation\\": "src"
"Merkeleon\\PhpCryptocurrencyAddressValidation\\": "src"
}
}
}
12 changes: 12 additions & 0 deletions src/Exception/CryptocurrencyValidatorNotFound.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Merkeleon\PhpCryptocurrencyAddressValidation\Exception;


class CryptocurrencyValidatorNotFound extends \Exception
{
public function __construct($iso)
{
parent::__construct(sprintf('Cryptocurrency validator for %s not found', $iso));
}
}
Loading