commerceguys / authnet
PHP SDK for Authorize.Net API, using Guzzle.
v1.1.5
2026-12-02 13:25 UTC
Requires
- php: >=7.3
- ext-json: *
- ext-simplexml: *
- ext-xmlwriter: *
- guzzlehttp/guzzle: ^6.2 || ^7.0 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^9.5.23
- squizlabs/php_codesniffer: ~3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master / 1.x-dev
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.0
- v1.0.0-rc5
- v1.0.0-rc4
- v1.0.0-rc3
- v1.0.0-rc2
- v1.0.0-rc1
- v1.0.0-beta6
- v1.0.0-beta5
- v1.0.0-beta4
- v1.0.0-beta3
- v1.0.0-beta2
- v1.0.0-beta1
- dev-use-github-actions
- dev-gh-23-testAuthTransaction-randomly-fails
- dev-update-travis-build-matrix
This package is auto-updated.
Last update: 2026-12-02 13:25:47 UTC
README
An SDK for Authorize.net, using Guzzle.
Why not the official Authorize.net PHP SDK?
- Currently https://github.com/AuthorizeNet/sdk-php is licensed under a proprietary license.
- It is not PSR-4.
- Too many dependencies.
Dependencies
PHP version >= 7.3 is required.
The following PHP extensions are required:
- json
- simplexml
- xmlwrite
This library uses Guzzle, v6 minimum.
Testing
PHPUnit
Run composer test, or ./vendor/bin/phpunit -c phpunit.xml.dist
Test Credit Card Numbers
| Card Type | Card Number |
|---|---|
| American Express | 370000000000002 |
| Discover | 6011000000000012 |
| Visa | 4007000000027 |
| 4012888818888 | |
| 4111111111111111 | |
| JCB | 3088000000000017 |
| Diners Club/ Carte Blanche | 38000000000006 |
| MasterCard | 5424000000000015 |
| 2223000010309703 | |
| 2223000010309711 |
See the Authorize.Net Testing Guide for more information.
License
See the LICENSE file.