PHPackages                             fredylopezs/tpago-sdk - 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. [Payment Processing](/categories/payments)
4. /
5. fredylopezs/tpago-sdk

ActiveLibrary[Payment Processing](/categories/payments)

fredylopezs/tpago-sdk
=====================

SDK para integrar paTPago

v0.2.1(1y ago)131MITPHPPHP ^8.0

Since Sep 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fredylopezs/tpago-sdk)[ Packagist](https://packagist.org/packages/fredylopezs/tpago-sdk)[ RSS](/packages/fredylopezs-tpago-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

TPago PHP SDK
=============

[](#tpago-php-sdk)

Este SDK proporciona una interfaz fácil de usar para interactuar con la API de TPago en aplicaciones PHP.

Instalación
-----------

[](#instalación)

Para instalar este SDK, utiliza Composer:

```
composer require fredylopezs/tpago-php
```

Uso
---

[](#uso)

### Configuración

[](#configuración)

Antes de usar el SDK, debes configurar las credenciales de TPago:

```
use FMLS\TPago\TPagoConfig;

$config = new TPagoConfig('publicKey', 'privateKey', 'commerceCode', 'branchCode');
```

Alternativamente, puedes usar el entorno de pruebas con sus respectivas credenciales:

```
$config = new TPagoConfig('publicKey', 'privateKey', 'commerceCode', 'branchCode', true);
```

### Generar un enlace de pago

[](#generar-un-enlace-de-pago)

Para generar un enlace de pago, utiliza la clase `Payment`:

```
use FMLS\TPago\TPagoClient;
use FMLS\TPago\Payment;

$client = new TPagoClient($config);
$payment = new Payment($client);

$response = $payment->generateLink(5000, "Test Payment");

print_r($response);
```

### Generar un enlace de suscripción

[](#generar-un-enlace-de-suscripción)

Para generar un enlace de suscripción, utiliza la clase `Subscription`:

```
use FMLS\TPago\Subscription;

$client = new TPagoClient($config);
$subscription = new Subscription($client);

$response = $subscription->generateLink([
    'amount' => 5000,
    'description' => "Test Subscription",
    'periodicity' => "monthly",
    'debit_day' => 1,
    'unlimited' => false
]);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

593d ago

### Community

Maintainers

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

---

Top Contributors

[![fredylopezs](https://avatars.githubusercontent.com/u/2915059?v=4)](https://github.com/fredylopezs "fredylopezs (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fredylopezs-tpago-sdk/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)

PHPackages © 2026

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