PHPackages                             altapay/api-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. [Payment Processing](/categories/payments)
4. /
5. altapay/api-php

ActiveLibrary[Payment Processing](/categories/payments)

altapay/api-php
===============

AltaPay: Payments less complicated

3.5.8(2mo ago)0200.0k—9.7%32MITPHPPHP ^7.1 || ^8.0CI passing

Since Jun 16Pushed 2mo agoCompare

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

READMEChangelog (10)Dependencies (18)Versions (58)Used By (2)

AltaPay - API PHP
=================

[](#altapay---api-php)

For accessing AltaPay payment gateway through the API

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

[](#installation)

`composer require altapay/api-php`

Usage
-----

[](#usage)

For doing a [`capture`](docs/payments/capture_reservation.md) the following can be used

```
$auth = new \Altapay\Authentication('username', 'password' , 'myshop.gateway.com');
$api = new \Altapay\Api\Payments\CaptureReservation($auth);
$api->setTransactionId('transaction id');
// Or you can use a transaction object you got from a previous API call
// $api->setTransaction($transactionObject);
try {
    $response = $api->call();
    // If everything went perfect, you will get a \Altapay\Api\Document\Capture in the response
} catch (\Altapay\Api\Exceptions\ClientException $e) {
    // If anything went wrong, you will get a exception where you can see the raw request and the raw response
}
```

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

[](#requirements)

The AltaPay API PHP requires PHP 7.1.0 or greater with the following extensions installed:

- date
- filter
- mbstring
- pcre
- Reflection
- SimpleXML
- spl

Changelog
---------

[](#changelog)

See [Changelog](CHANGELOG.md) for all the release notes.

License
-------

[](#license)

Distributed under the MIT License. See [LICENSE](LICENSE) for more information.

Documentation
-------------

[](#documentation)

For more details please see [documentation](docs/index.md)

###  Health Score

60

—

FairBetter than 99% of packages

Maintenance85

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~42 days

Total

56

Last Release

77d ago

Major Versions

v1.8.0 → v2.0.02019-12-19

v2.1.0 → v3.0.02020-09-30

PHP version history (6 changes)v1.0PHP ^5.5|^7.0

v1.5PHP ^5.6|^7.0

v3.0.0PHP ^5.6 || ^7.0

3.2.0PHP ^5.6 || ^7.0 || ^8.0

3.5.1PHP ^7.0 || ^8.0

3.5.5PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e61b9a60072d004a10c1114bf981023744ccf29b18388d062a0f67e140763f6?d=identicon)[integration](/maintainers/integration)

![](https://www.gravatar.com/avatar/822106692fbc596635560b3ce105f1a67cec2ed7ea144856f2cf8660c184d4b5?d=identicon)[BushraAsif](/maintainers/BushraAsif)

---

Top Contributors

[![BushraAsif](https://avatars.githubusercontent.com/u/15101585?v=4)](https://github.com/BushraAsif "BushraAsif (97 commits)")[![shahbaz-mehar](https://avatars.githubusercontent.com/u/39646587?v=4)](https://github.com/shahbaz-mehar "shahbaz-mehar (95 commits)")[![AJenbo](https://avatars.githubusercontent.com/u/204594?v=4)](https://github.com/AJenbo "AJenbo (49 commits)")[![lsv](https://avatars.githubusercontent.com/u/20708?v=4)](https://github.com/lsv "lsv (47 commits)")[![emicha](https://avatars.githubusercontent.com/u/1629945?v=4)](https://github.com/emicha "emicha (44 commits)")[![sz-altapay-com](https://avatars.githubusercontent.com/u/17404137?v=4)](https://github.com/sz-altapay-com "sz-altapay-com (7 commits)")[![maf-embraceit](https://avatars.githubusercontent.com/u/60003469?v=4)](https://github.com/maf-embraceit "maf-embraceit (3 commits)")[![FarhadKabir](https://avatars.githubusercontent.com/u/7831228?v=4)](https://github.com/FarhadKabir "FarhadKabir (2 commits)")[![rajmundtoth0](https://avatars.githubusercontent.com/u/115630432?v=4)](https://github.com/rajmundtoth0 "rajmundtoth0 (1 commits)")

---

Tags

paymentaltapay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[jms/payment-core-bundle

A unified API for processing payments with Symfony

194742.9k36](/packages/jms-payment-core-bundle)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)[tsaiyihua/laravel-linepay

linepay library for laravel

102.9k](/packages/tsaiyihua-laravel-linepay)

PHPackages © 2026

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