PHPackages                             accepton/accepton - 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. accepton/accepton

ActiveLibrary[API Development](/categories/api)

accepton/accepton
=================

Get paid in your customer's preferred method

v0.2.0(10y ago)01321[4 issues](https://github.com/accepton/accepton-php/issues)MITPHPPHP &gt;=5.5.0

Since Apr 12Pushed 10y ago5 watchersCompare

[ Source](https://github.com/accepton/accepton-php)[ Packagist](https://packagist.org/packages/accepton/accepton)[ Docs](https://developers.accepton.com)[ RSS](/packages/accepton-accepton/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (14)Versions (3)Used By (0)

AcceptOn
========

[](#accepton)

[![Build Status](https://camo.githubusercontent.com/86c5766837e2a77bae7b5557506a3e6bc0c77a4a72aea83dddcd4ead8ea52fde/68747470733a2f2f636972636c6563692e636f6d2f67682f6163636570746f6e2f6163636570746f6e2d7068702e7376673f7374796c653d736869656c6426636972636c652d746f6b656e3d38313830326637646234656332343234386461353866383564636432636133373633646533613633)](https://circleci.com/gh/accepton/accepton-php)

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

[](#documentation)

Please see the [PHP developer documentation](http://developers.accepton.com/?php) for more information.

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

[](#installation)

You can install the package via [Composer](https://getcomposer.org):

```
$ composer require accepton/accepton
```

And then use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading) to require it:

```
require_once("vendor/autoload.php");
```

Getting Started
---------------

[](#getting-started)

This library uses the [HTTPlug](http://php-http.org) interface to abstract the specific HTTP client and [PSR-7](http://www.php-fig.org/psr/psr-7/) message factory used in the client. If you do not already have an HTTPlug-compatible client and PSR-7 message factory installed, you will need to install one.

Your `HTTPClient` and `MessageFactory` can then be auto-discovered using [Puli](http://puli.io).

See the [list of HTTP clients](https://packagist.org/providers/php-http/client-implementation) to choose from. Also, the HTTPlug project has [quick start instructions](http://php-http.org/en/latest/clients.html) for a number of the clients.

### Using Service Discovery

[](#using-service-discovery)

As a quick start, you can install these packages via composer, which will give you the following:

1. A [Guzzle](http://guzzlephp.org)-based HTTP client.
2. A PHP-HTTP Guzzle message factory.
3. Puli for auto-discovery.

```
$ composer require \
    php-http/guzzle6-adapter \
    php-http/message \
    puli/composer-plugin \
    puli/repository \
    puli/discovery
```

Then, initialize the client like so:

```
use AcceptOn\Client;

$client = new Client(API_KEY, "staging");
```

### Without Service Discovery

[](#without-service-discovery)

If you prefer not to use Puli, you can install one of [HTTP clients](http://php-http.org/en/latest/clients.html)and accompanying message factories using Composer. For example, if you want to use Guzzle6, run:

```
$ composer require php-http/guzzle6-adapter php-http/message
```

The `php-http/guzzle6-adapter` contains the HTTPlug client and `php-http/message` contains the message factory.

Then, initialize the client like so:

```
use AcceptOn\Client;
use Http\Adapter\Guzzle6\Client as HttpClient;
use Http\Message\MessageFactory\GuzzleMessageFactory as MessageFactory;

$httpClient = new HttpClient();
$messageFactory = new MessageFactory();

$client = new Client(API_KEY, "staging");
$client->setHttpClient($httpClient);
$client->setMessageFactory($messageFactory);
```

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

[](#contributing)

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Write your code *and unit tests*
4. Ensure all tests still pass (`bundle exec rspec`)
5. Commit your changes (`git commit -am 'Add some feature'`)
6. Push to the branch (`git push origin my-new-feature`)
7. Create a new pull request

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.6% 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 ~15 days

Total

2

Last Release

3673d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8df0b8ef30870a9052b66b6124e38c72489fe5713c2d729740ed1400bb0f152a?d=identicon)[RealBerd](/maintainers/RealBerd)

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

---

Top Contributors

[![michaelherold](https://avatars.githubusercontent.com/u/424833?v=4)](https://github.com/michaelherold "michaelherold (48 commits)")[![RealBerd](https://avatars.githubusercontent.com/u/2241165?v=4)](https://github.com/RealBerd "RealBerd (23 commits)")

---

Tags

apistripepayment processingpaypalbraintree

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[pay-now/paynow-php-sdk

PHP client library for accessing Paynow API

18193.9k2](/packages/pay-now-paynow-php-sdk)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)[dhope0000/lxd

PHP-based API wrapper for LXD REST API.

136.2k](/packages/dhope0000-lxd)[everypay/everypay-php

1742.0k](/packages/everypay-everypay-php)[kun391/yii2-paypal

Process with Paypal

161.6k](/packages/kun391-yii2-paypal)

PHPackages © 2026

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