PHPackages                             hechoendrupal/compropago-api - 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. hechoendrupal/compropago-api

ActiveLibrary[API Development](/categories/api)

hechoendrupal/compropago-api
============================

PHP integration for compropago.com API

1.1.1(11y ago)11581MITPHP

Since Mar 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/dmouse/compropago-api)[ Packagist](https://packagist.org/packages/hechoendrupal/compropago-api)[ RSS](/packages/hechoendrupal-compropago-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

ComproPago API
==============

[](#compropago-api)

[![Latest Stable Version](https://camo.githubusercontent.com/af6ac2e2814fe03f7daa95bc20cf2148f39a00297219a781d98ccd9bb52e80a2/68747470733a2f2f706f7365722e707567782e6f72672f686563686f656e64727570616c2f636f6d70726f7061676f2d6170692f762f737461626c652e737667)](https://packagist.org/packages/hechoendrupal/compropago-api) [![Total Downloads](https://camo.githubusercontent.com/4e306b6dd90c28dda455d3036b52b9148b9d50758a9fdbccdbf85280483467c0/68747470733a2f2f706f7365722e707567782e6f72672f686563686f656e64727570616c2f636f6d70726f7061676f2d6170692f646f776e6c6f6164732e737667)](https://packagist.org/packages/hechoendrupal/compropago-api) [![Latest Unstable Version](https://camo.githubusercontent.com/f0d35ca7ee48d9a1c7cda819c4c086b63a48aa872461dd72285f27486f326122/68747470733a2f2f706f7365722e707567782e6f72672f686563686f656e64727570616c2f636f6d70726f7061676f2d6170692f762f756e737461626c652e737667)](https://packagist.org/packages/hechoendrupal/compropago-api) [![License](https://camo.githubusercontent.com/452e201be92972dd80027866f62b354ae33eef687b1dcdc7ed4ee9a550d8d5eb/68747470733a2f2f706f7365722e707567782e6f72672f686563686f656e64727570616c2f636f6d70726f7061676f2d6170692f6c6963656e73652e737667)](https://packagist.org/packages/hechoendrupal/compropago-api)

### Instalation

[](#instalation)

- Via composer

```
$ curl -sS https://getcomposer.org/installer | php
$ cat composer.json
{
    "require": {
      "hechoendrupal/compropago-api": "~1.0"
    }
}
$ ./composer.phar install
```

### Usage

[](#usage)

```
use HechoEnDrupal\ComproPago\Api;
use HechoEnDrupal\ComproPago\Charge;
use HechoEnDrupal\ComproPago\Customer;

require __DIR__ . 'vendor/autoload.php';

// ...

$api = new Api($api_key);
$product = $api->createCharge($charge);
$status = $api->getCharge($product['payment_id']);
$sms = $api->createSMS($customer,$product['payment_id']);
```

#### Webhooks

[](#webhooks)

```
use HechoEnDrupal\ComproPago\Webhook;

$webhook = new WebHook();

// Charge data
print $webhook->getAmount()."\n";
print $webhook->getCreated($format=null)."\n";
print $webhook->getID()."\n";
print $webhook->getShortID()."\n";
if ($webhook->paid()) {
  print "Paid\n";
}

// Payment Details
$payment = $webhook->getPaymentDetails();
print "Payment Details"."\n";
print $payment->getStore()."\n";
print $payment->getProductID()."\n";
print $payment->getCustomerPhone()."\n";
print $payment->getCustomerEmail()."\n";
print $payment->getCountry()."\n";
```

More information in [examples section](https://github.com/dmouse/compropago-api/tree/master/samples)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~22 days

Recently: every ~2 days

Total

6

Last Release

4344d ago

Major Versions

0.1 → 1.02014-06-13

### Community

Maintainers

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

---

Top Contributors

[![dmouse](https://avatars.githubusercontent.com/u/198571?v=4)](https://github.com/dmouse "dmouse (22 commits)")[![metoro](https://avatars.githubusercontent.com/u/4154715?v=4)](https://github.com/metoro "metoro (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hechoendrupal-compropago-api/health.svg)

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

###  Alternatives

[rackspace/php-opencloud

PHP SDK for Rackspace/OpenStack APIs

4495.9M38](/packages/rackspace-php-opencloud)[cdaguerre/php-trello-api

Trello API v2 client

255666.7k3](/packages/cdaguerre-php-trello-api)[dchesterton/marketo-rest-api

A PHP client for the Marketo.com REST API

41844.1k1](/packages/dchesterton-marketo-rest-api)[carlosio/geckoboard

A PHP library for dealing with Geckoboard API (http://www.geckoboard.com)

40172.2k](/packages/carlosio-geckoboard)[teepluss/api

Laravel 4 Internal Request (HMVC)

7034.0k](/packages/teepluss-api)[jlinn/mandrill-api-php

A PHP client library for Mandrill's REST API

24117.4k](/packages/jlinn-mandrill-api-php)

PHPackages © 2026

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