PHPackages                             sairoko12/conekta-php-namespaces - 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. sairoko12/conekta-php-namespaces

ActiveLibrary[API Development](/categories/api)

sairoko12/conekta-php-namespaces
================================

Conekta PHP Library

v3.0.0(9y ago)060MITPHPPHP &gt;=5.2

Since Jan 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sairoko12/conekta-php)[ Packagist](https://packagist.org/packages/sairoko12/conekta-php-namespaces)[ Docs](https://www.conekta.io/)[ RSS](/packages/sairoko12-conekta-php-namespaces/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (26)Used By (0)

[![alt tag](https://camo.githubusercontent.com/ad9a5677aecf4eb729ad45fad59c75fa46073850074a6304aa0c31f779f9331a/68747470733a2f2f7261772e6769746875622e636f6d2f636f6e656b74612f636f6e656b74612d7068702f6d61737465722f726561646d655f66696c65732f636f7665722e706e67)](https://camo.githubusercontent.com/ad9a5677aecf4eb729ad45fad59c75fa46073850074a6304aa0c31f779f9331a/68747470733a2f2f7261772e6769746875622e636f6d2f636f6e656b74612f636f6e656b74612d7068702f6d61737465722f726561646d655f66696c65732f636f7665722e706e67)

Conekta PHP v.3.0.0
===================

[](#conekta-php-v300)

This is a php library that allows interaction with  API.

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

[](#installation)

Obtain the latest version of the Conekta PHP bindings with:

```
git clone https://github.com/conekta/conekta-php

```

To get started, add the following to your PHP script:

```
require_once("/path/to/conekta-php/lib/Conekta.php");

```

You can also install this library with composer:

require: "conekta/conekta-php": "3.0.0"

Usage
-----

[](#usage)

```
\Conekta\Conekta::setApiKey('1tv5yJp3xnVZ7eK67m4h');
try {
  $charge = \Conekta\Charge::create(array(
    "amount"=> 51000,
    "currency"=> "MXN",
    "description"=> "Pizza Delivery",
    "reference_id"=> "orden_de_id_interno",
    "card"=> $_POST['conektaTokenId']
    //"tok_a4Ff0dD2xYZZq82d9"
  ));
} catch (Conekta_Error $e) {
  echo $e->getMessage(); //Dev Message
  echo $e->message_to_purchaser;
  //El pago no pudo ser procesado
}

{
  "id": "5286828b8ee31e64b7001739",
  "livemode": false,
  "created_at": 1384546955,
  "status": "paid",
  "currency": "MXN",
  "description": "Some desc",
  "reference_id": null,
  "failure_code": null,
  "failure_message": null,
  "object": "charge",
  "amount": 2000,
  "fee": 371,
  "payment_method": {
    "name": "Mario Moreno",
    "exp_month": "05",
    "exp_year": "15",
    "auth_code": "861491",
    "object": "card_payment",
    "last4": "4242",
    "brand": "visa"
  },
  "details": {
    "name": null,
    "phone": null,
    "email": null,
    "line_items": []
  }
}
```

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

[](#documentation)

Please see  for up-to-date documentation.

Tests
-----

[](#tests)

In order to run tests you have to install SimpleTest () via Composer () (recommended way):

```
composer.phar update --dev

```

Run test suite:

```
php ./test/Conekta.php

```

License
-------

[](#license)

Developed by [Conekta](https://www.conekta.io). Available with [MIT License](LICENSE).

We are hiring
-------------

[](#we-are-hiring)

If you are a comfortable working with a range of backend languages (Java, Python, Ruby, PHP, etc) and frameworks, you have solid foundation in data structures, algorithms and software design with strong analytical and debugging skills. Send your CV, github to

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 77.3% 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 ~64 days

Recently: every ~74 days

Total

17

Last Release

3413d ago

Major Versions

v1.9.9 → v2.0.02014-11-07

v2.0.5 → v3.0.02016-11-16

### Community

Maintainers

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

---

Top Contributors

[![MauricioMurga](https://avatars.githubusercontent.com/u/538006?v=4)](https://github.com/MauricioMurga "MauricioMurga (68 commits)")[![joecohens](https://avatars.githubusercontent.com/u/1803556?v=4)](https://github.com/joecohens "joecohens (10 commits)")[![leofischer](https://avatars.githubusercontent.com/u/148611?v=4)](https://github.com/leofischer "leofischer (3 commits)")[![Janee](https://avatars.githubusercontent.com/u/4097278?v=4)](https://github.com/Janee "Janee (2 commits)")[![picharras](https://avatars.githubusercontent.com/u/1093116?v=4)](https://github.com/picharras "picharras (2 commits)")[![richpeniche](https://avatars.githubusercontent.com/u/1635276?v=4)](https://github.com/richpeniche "richpeniche (2 commits)")[![javiermurillo](https://avatars.githubusercontent.com/u/1079576?v=4)](https://github.com/javiermurillo "javiermurillo (1 commits)")

---

Tags

apipayment processingconekta

### Embed Badge

![Health badge](/badges/sairoko12-conekta-php-namespaces/health.svg)

```
[![Health](https://phpackages.com/badges/sairoko12-conekta-php-namespaces/health.svg)](https://phpackages.com/packages/sairoko12-conekta-php-namespaces)
```

###  Alternatives

[paymentwall/paymentwall-php

Paymentwall PHP Library. Paymentwall is the leading digital payments platform for globally monetizing digital goods and services.

87787.4k5](/packages/paymentwall-paymentwall-php)[ebanx/ebanx

EBANX PHP library

24642.6k](/packages/ebanx-ebanx)[pay-now/paynow-php-sdk

PHP client library for accessing Paynow API

18186.4k2](/packages/pay-now-paynow-php-sdk)[everypay/everypay-php

1741.3k](/packages/everypay-everypay-php)

PHPackages © 2026

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