Skip to content

Commit 3481fbe

Browse files
author
CryptAPI
committed
ext-curl
1 parent 220b3ff commit 3481fbe

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,20 @@ ext-curl
1414

1515

1616
```
17-
git clone https://github.com/cryptapi/php-cryptapi
17+
composer require cryptapi/php-cryptapi
1818
```
1919

20-
[on GitHub](https://github.com/cryptapi/php-cryptapi)
20+
[on GitHub](https://github.com/cryptapi/php-cryptapi)  
21+
[on Composer](https://packagist.org/packages/cryptapi/php-cryptapi)
2122

2223
## Usage
2324

2425
### Generating a new address
2526

2627
```php
2728
<?php
29+
require 'vendor/autoload.php'; // Where your vendor directory is
30+
2831
use CryptAPI\CryptAPI;
2932

3033
$ca = new Cryptapi($coin, $my_address, $callback_url, $parameters, $pending);
@@ -52,6 +55,9 @@ The URL you provided earlier will be called when a user pays, for easier process
5255

5356
```php
5457
<?php
58+
59+
require 'vendor/autoload.php'; // Where your vendor directory is
60+
5561
use CryptAPI\CryptAPI;
5662

5763
$payment_data = Cryptapi::process_callback($_GET, $convert);
@@ -94,6 +100,9 @@ From here you just need to check if the value matches your order's value.
94100

95101
```php
96102
<?php
103+
104+
require 'vendor/autoload.php'; // Where your vendor directory is
105+
97106
use CryptAPI\CryptAPI;
98107

99108
$ca = new Cryptapi($coin, $my_address, $callback_url, $parameters);

0 commit comments

Comments
 (0)