PHPackages                             a3pay/php - 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. [API Development](/categories/api)
4. /
5. a3pay/php

ActiveLibrary[API Development](/categories/api)

a3pay/php
=========

A PHP Wrapper for a3Pay API

v1.0.4(3y ago)0261MITPHP ^7.3|^8.0

Since May 27Pushed 3y agoCompare

[ Source](https://github.com/a3Pay/a3pay-php)[ Packagist](https://packagist.org/packages/a3pay/php)[ RSS](/packages/a3pay-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

a3pay-php
=========

[](#a3pay-php)

PHP library for a3Pay

Requirements
------------

[](#requirements)

- PHP ^7.3

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

[](#installation)

To install with composer run the following command

```
composer require a3pay/php

```

Usage
-----

[](#usage)

```
//Autoload classes using composer
require_once 'vendor/autoload.php';
//OR
//Include the classes directly from path
require_once 'vendor/a3pay/php/dist/payments.php';
require_once 'vendor/a3pay/php/dist/marketa.php';
require_once 'vendor/a3pay/php/dist/apps.php';
require_once 'vendor/a3pay/php/dist/wallet.php';

//Payment Collection
//Ignite the Payment Collection Class Using Your a3Pay Account Taken
$mode = 'test'; //'test' or 'live'
$token = 'w6gfpqde8a3u5lauu7r7xkfqhkinslvxrsybr0'; //To know more about tokens and how to get yours follow here (https://a3pay.co/docs/#access_token)
$payments = new a3\payments($token, $mode);

//Using the create_transaction function
$category = 'checkout'; // 'checkout' or 'donation'
$amount = 1000;
$label = 'frgtyuy4';
$currency = 'USD';
$coin = 'BTC,USDT';
$success_url = 'https://my_domain.com/success_callback?id=456ytgre56';
$error_url = 'https://my_domain.com/error_callback?id=456ytgre56';
$resp = $payments->create_transaction($category, $amount, $label, $currency, $coin, $success_url, $error_url);
//Using the create_transaction function without callback urls
$resp = $payments->create_transaction($category, $amount, $label, $currency, $coin, null, null);

//Wallet
//Ignite the wallet Class Using Your wallet api_key
$btc_api_key = 'praoubf8d2e1584059489f8ffa3663b3223df2'; //For Bitcoin
$usdt_api_key = '9f8ffbf8d2e1584059489f8ffa3663b3223df2'; // For Tether USDT
$eth_api_key = 'praoubf8d2e1584059489f8ffa3663b3223df2'; // For Ethereum
//To know more about wallet api keys and how to get yours follow here (https://a3pay.co/docs/#api_key)
$eth = new a3\wallet($eth_api_key);

//Using the get_new_address function
$label = 'wsedrftgyh';
$resp = $eth->get_new_address($label);

//a3Marketa
//Ignite the a3marketa Class
$marketa = new a3\marketa();

//Using the live_data function
$resp = $marketa->live_data();

//a3Apps
//Ignite the a3apps Class Using Your a3Pay Account Taken
$token = 'w6gfpqde8a3u5lauu7r7xkfqhkinslvxrsybr0'; //To know more about tokens and how to get yours follow here (https://a3pay.co/docs/#access_token)
$apps = new a3\apps($token);

//Using the get_account_info function
$resp = $apps->get_account_info();
```

Examples
--------

[](#examples)

Look to the scripts in the `/examples` directory in your browser. You will have to change the api\_key and token in the example files to your own.

Contributing
------------

[](#contributing)

If you encounter a bug or have a suggestion to help improve this liobrary for others, you are welcome to open a Github issue on this repository and it will be reviewed by our development team.

License
-------

[](#license)

MIT - see LICENSE

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~49 days

Total

5

Last Release

1255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/19bbb39c2ae13aa0f54115bbb8825992a47634892bd56b821f92b4496d50ca15?d=identicon)[snipnettech](/maintainers/snipnettech)

---

Top Contributors

[![esiokugbechoice](https://avatars.githubusercontent.com/u/46899181?v=4)](https://github.com/esiokugbechoice "esiokugbechoice (27 commits)")

---

Tags

a3marketaa3pay-apicryptocurrencypayment-collectionwallet

### Embed Badge

![Health badge](/badges/a3pay-php/health.svg)

```
[![Health](https://phpackages.com/badges/a3pay-php/health.svg)](https://phpackages.com/packages/a3pay-php)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

517.9M7](/packages/avalara-avataxclient)[alexacrm/dynamics-webapi-toolkit

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

81324.1k1](/packages/alexacrm-dynamics-webapi-toolkit)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)

PHPackages © 2026

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