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 2d 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 26% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

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

650d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2915059?v=4)[Fredy López Sosa](/maintainers/fredylopezs)[@fredylopezs](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[sylius/sylius

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

8.5k5.9M738](/packages/sylius-sylius)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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