PHPackages                             acquired/php-api-library - 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. acquired/php-api-library

ActiveLibrary[API Development](/categories/api)

acquired/php-api-library
========================

A PHP client library for accessing Acquired APIs

1222PHP

Since May 28Pushed 5y agoCompare

[ Source](https://github.com/AcquiredSupport/Acquired-api-sdk-php)[ Packagist](https://packagist.org/packages/acquired/php-api-library)[ RSS](/packages/acquired-php-api-library/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Acquired-api-sdk-php
====================

[](#acquired-api-sdk-php)

Description
-----------

[](#description)

The Acquired API Library for PHP enables you to work with Acquired APIs.

Directory
---------

[](#directory)

```
|--example
    auth_.html
    auth_.php
    refund.html
    refund.php
    ...
|--lib
    AcquiredCommon.php
    AcquiredConfig.php
    AcquiredException.php
    |--service
        HandlePub.php
        AuthHandle.php
        AuthOnlyHandle.php
        CaptureHandle.php
        AuthCaptureHandle.php
        ...
|--public
    |--css
        general.css
    |--js
|--logs
readme.md
index.php
```

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

[](#documentation)

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

[](#installation)

You can use Composer or simply Download the Release

Composer
--------

[](#composer)

The preferred method is via composer. Follow the [installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have composer installed. Once composer is installed, execute the following command in your project root to install this library:

```
composer require Acquired/php-api-library:dev-master
```

Examples
--------

[](#examples)

#### Get start

[](#get-start)

1. set config parameters in AcquiredConfig.php.
2. move the example directory to you web root.
3. require the below file in the example files if you use composer.

```
require_once __DIR__ . '/../vendor/autoload.php';
```

#### How to use

[](#how-to-use)

It is very simply to use like this:

1. new a obj accoding to your transaction type.

```
use Acquired\Service\AuthHandle;
$auth = new AuthHandle();
```

2. set parameters.

```
$auth->setParam("amount",1);
```

3. post parameters.

```
$result = $auth->postJson();
```

4. deal response.

```
$response_hash = $auth->generateResHash($result);
if($reponse_hash == $result['response_hash']){

    // do your job.

}
```

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

[](#requirements)

PHP 5.3+
Curl

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a185191b425f67244e7513e1993495e9c5bb13022d90f815ddcf2d7d6aa0be79?d=identicon)[acquired](/maintainers/acquired)

---

Top Contributors

[![peter-jcube](https://avatars.githubusercontent.com/u/149639848?v=4)](https://github.com/peter-jcube "peter-jcube (17 commits)")[![AcquiredSupport](https://avatars.githubusercontent.com/u/33811642?v=4)](https://github.com/AcquiredSupport "AcquiredSupport (11 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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