PHPackages                             ramzyvirani/yii2-authorizenet - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. ramzyvirani/yii2-authorizenet

ActiveYii2-extension[Payment Processing](/categories/payments)

ramzyvirani/yii2-authorizenet
=============================

YII2 Authorizenet Gateway Extension

1.1(10y ago)059Apache-2.0PHP

Since Apr 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/RamzyVirani/yii2-authorizenet)[ Packagist](https://packagist.org/packages/ramzyvirani/yii2-authorizenet)[ RSS](/packages/ramzyvirani-yii2-authorizenet/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

YII2 Authorizenet Gateway Extensions
====================================

[](#yii2-authorizenet-gateway-extensions)

YII2 Authorizenet Payment Gateway Extension

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require ramzyvirani/yii2-authorizenet "*"

```

or add

```
"ramzyvirani/yii2-authorizenet": "*"

```

to the require section of your `composer.json` file.

How to call?
------------

[](#how-to-call)

You just have to include any of the class in your code before using it and other code you can use exactly the same as authorizenet PHP SDK.

```
use AuthorizeNetAIM;
use AuthorizeNetARB;
use AuthorizeNetCIM;
use AuthorizeNetCP;
use AuthorizeNetDPM;
use AuthorizeNetSIM;
use AuthorizeNetSOAP;
use AuthorizeNetTD;

```

Usage Examples
--------------

[](#usage-examples)

Once the extension is installed, simply use it in your code by :

```
	use AuthorizeNetAIM;
	define("AUTHORIZENET_API_LOGIN_ID", "YOURLOGIN");
	define("AUTHORIZENET_TRANSACTION_KEY", "YOURKEY");
	define("AUTHORIZENET_SANDBOX", true);

	$sale = new AuthorizeNetAIM;
	$sale->amount = "5.99";
	$sale->card_num = '4111111111111111';
	$sale->exp_date = '0418';
	$response = $sale->authorizeAndCapture();
	if ($response->approved) {
		echo "Success! Transaction ID:" . $response->transaction_id;
	} else {
		echo "ERROR:" . $response->error_message;
	}
```

For more examples visit

License
-------

[](#license)

**yii2-authorizenet** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3716d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/030d8a2b101d8dd634ce38ef5f9b1eaeb5cde45fdea7fe68d35553ecc80abebf?d=identicon)[RamzyVirani](/maintainers/RamzyVirani)

---

Tags

authorizenetpaymentpayment-gatewayphpyii2yii2-authorizenetyii2 authorize.net extension

### Embed Badge

![Health badge](/badges/ramzyvirani-yii2-authorizenet/health.svg)

```
[![Health](https://phpackages.com/badges/ramzyvirani-yii2-authorizenet/health.svg)](https://phpackages.com/packages/ramzyvirani-yii2-authorizenet)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[guanguans/yii-pay

适配于 Yii 的 alipay 和 wechat 的支付扩展包

515.8k](/packages/guanguans-yii-pay)[tastyigniter/ti-ext-payregister

Allows you to accept credit card payments using PayPal, Stripe, Authorize.Net and/or Mollie.

1016.7k6](/packages/tastyigniter-ti-ext-payregister)[hscstudio/yii2-cart

Yii2 extension that adds shopping cart functions

242.1k](/packages/hscstudio-yii2-cart)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
