PHPackages                             inquid/conekta - 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. inquid/conekta

ActiveLibrary

inquid/conekta
==============

Conekta PHP Library

043PHP

Since Oct 21Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![README Cover Image](readme_cover.png)](readme_cover.png)

Conekta PHP v.4.0.4
===================

[](#conekta-php-v404)

[![Made with PHP](https://camo.githubusercontent.com/99831fb1c045cc3b5e6e9491516269aac04ebab3f0b679137b45a6e87955d1db/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d616465253230776974682d7068702d7265642e7376673f7374796c653d666f722d7468652d626164676526636f6c6f72413d45443430343026636f6c6f72423d433132433244)](http://php.net)[![By Conekta](https://camo.githubusercontent.com/3852d9ad8f4564dcb10026624782a9ad00989dad7448d9b85a1fe865f49c9136/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f62792d636f6e656b74612d7265642e7376673f7374796c653d666f722d7468652d626164676526636f6c6f72413d65653631333026636f6c6f72423d303061346163)](https://conekta.com)

This is a php library that allows interaction with  API.

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

[](#installation)

User composer:

require: "inquid/conekta": "dev-master"

Usage
-----

[](#usage)

```
setApiKey();
$valid_order =
    array(
        'line_items'=> array(
            array(
                'name'        => 'Box of Cohiba S1s',
                'description' => 'Imported From Mex.',
                'unit_price'  => 20000,
                'quantity'    => 1,
                'sku'         => 'cohb_s1',
                'category'    => 'food',
                'tags'        => array('food', 'mexican food')
                )
           ),
          'currency'    => 'mxn',
          'metadata'    => array('test' => 'extra info'),
          'charges'     => array(
              array(
                  'payment_method' => array(
                      'type'       => 'oxxo_cash',
                      'expires_at' => strtotime(date("Y-m-d H:i:s")) + "36000"
                   ),
                   'amount' => 20000
                )
            ),
            'currency'      => 'mxn',
            'customer_info' => array(
                'name'  => 'John Constantine',
                'phone' => '+5213353319758',
                'email' => 'hola@hola.com'
            )
        );

try {
  $order = \Conekta\Order::create($valid_order);
} catch (\Conekta\ProcessingError $e){
  echo $e->getMessage();
} catch (\Conekta\ParameterValidationError $e){
  echo $e->getMessage();
} finally (\Conekta\Handler $e){
  echo $e->getMessage();
}
```

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

[](#documentation)

Please see [developers.conekta.com/api](https://developers.conekta.com/api) for up-to-date documentation.

Run Tests
---------

[](#run-tests)

Unit test based on php library PHPUnit to describe better memory usage, test status and test results.

### Requeriments

[](#requeriments)

PHPUnit 6.1 requires PHP 7; using the latest version of PHP is highly recommended.

### Installation

[](#installation-1)

for better usage install phpunit globally

```
$ wget https://phar.phpunit.de/phpunit-6.1.phar

$ chmod +x phpunit-6.1.phar

$ sudo mv phpunit-6.1.phar /usr/local/bin/phpunit

$ phpunit --version

ej. output
PHPUnit 6.1.1 by Sebastian Bergmann and contributors.

```

php version used

```
PHP 7.0.17 (cli)

```

Run test suite:

```
phpunit test/Conekta-x.0

```

*note:* for this phpunit version (6.1.x) only php 7 is supported for older php versions see phpunit [ documentation](https://phpunit.de/)

License
-------

[](#license)

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

How to contribute to the project
--------------------------------

[](#how-to-contribute-to-the-project)

1. Fork the repository
2. Clone the repository

```
    git clone git@github.com:yourUserName/conekta-php.git

```

3. Create a branch

```
    git checkout develop
    git pull origin develop
    # You should choose the name of your branch
    git checkout -b

```

4. Make necessary changes and commit those changes

```
    git add .
    git commit -m "my changes"

```

5. Push changes to GitHub

```
    git push origin

```

6. Submit your changes for review, create a pull request

    To create a pull request, you need to have made your code changes on a separate branch. This branch should be named like this: **feature/my\_feature** or **fix/my\_fix**.

    Make sure that, if you add new features to our library, be sure to add the corresponding **unit tests**.

    If you go to your repository on GitHub, you’ll see a Compare &amp; pull request button. Click on that button.

---

We are always hiring!
---------------------

[](#we-are-always-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, check our open positions:

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/1505641?v=4)[Luis Gonzalez](/maintainers/gogl92)[@gogl92](https://github.com/gogl92)

---

Top Contributors

[![gogl92](https://avatars.githubusercontent.com/u/1505641?v=4)](https://github.com/gogl92 "gogl92 (8 commits)")

---

Tags

conektaphp

### Embed Badge

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

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

PHPackages © 2026

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