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.9(1mo ago)0227.8k↓36.8%3[1 PRs](https://github.com/AltaPay/api-php/pulls)2MITPHPPHP ^7.1 || ^8.0CI passing

Since Jun 16Pushed 1w 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 2d ago

READMEChangelog (10)Dependencies (36)Versions (63)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

62

—

FairBetter than 99% of packages

Maintenance94

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community23

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

Recently: every ~53 days

Total

58

Last Release

36d 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://avatars.githubusercontent.com/u/15101585?v=4)[Bushra Asif](/maintainers/BushraAsif)[@BushraAsif](https://github.com/BushraAsif)

---

Top Contributors

[![BushraAsif](https://avatars.githubusercontent.com/u/15101585?v=4)](https://github.com/BushraAsif "BushraAsif (100 commits)")[![shahbaz-mehar](https://avatars.githubusercontent.com/u/39646587?v=4)](https://github.com/shahbaz-mehar "shahbaz-mehar (99 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 (46 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

[sylius/sylius

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

8.5k5.9M738](/packages/sylius-sylius)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[symfony/form

Allows to easily create, process and reuse HTML forms

2.8k162.1M3.4k](/packages/symfony-form)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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