You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recommend using [`Composer`](http://getcomposer.org)*(note we never recommend you
46
-
override the new secure-http default setting)*. Don't forget to require its autoloader
47
-
in your script or bootstrap file:
48
-
```php
49
-
require 'vendor/autoload.php';
50
-
```
44
+
### Composer
45
+
We recommend using [`Composer`](http://getcomposer.org). *(Note: we never recommend you
46
+
override the new secure-http default setting)*.
51
47
*Update your composer.json file as per the example below and then run
52
48
`composer update`.*
53
49
@@ -60,6 +56,13 @@ require 'vendor/autoload.php';
60
56
}
61
57
```
62
58
59
+
After installation through Composer,
60
+
don't forget to require its autoloader in your script or bootstrap file:
61
+
```php
62
+
require 'vendor/autoload.php';
63
+
```
64
+
65
+
### Custom SPL Autoloader
63
66
Alternatively, we provide a custom `SPL` autoloader for you to reference from within your PHP file:
64
67
```php
65
68
require 'path/to/anet_php_sdk/autoload.php';
@@ -82,7 +85,6 @@ To authenticate with the Authorize.Net API you will need to use your account's A
82
85
Once you have your keys simply load them into the appropriate variables in your code, as per the below sample code dealing with the authentication part of the API request.
83
86
84
87
#### To set your API credentials for an API request:
85
-
86
88
...
87
89
```php
88
90
use net\authorize\api\contract\v1 as AnetAPI;
@@ -203,15 +205,15 @@ Add PhpDocumentor to your composer.json and run `composer update --dev`:
203
205
"phpdocumentor/phpdocumentor": "*"
204
206
}
205
207
```
206
-
To autogenerate PHPDocs run:
208
+
To autogenerate PHPDocs run the following at the command line (from the same directory as your composer.json):
0 commit comments