PHPackages                             saulmoralespa/pstpagofacil - 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. saulmoralespa/pstpagofacil

ActiveLibrary[API Development](/categories/api)

saulmoralespa/pstpagofacil
==========================

pst pago facil API PHP SDk

1.0.0(7y ago)0841MITPHPPHP &gt;=5.6

Since Dec 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/saulmoralespa/pst-pagofacil)[ Packagist](https://packagist.org/packages/saulmoralespa/pstpagofacil)[ RSS](/packages/saulmoralespa-pstpagofacil/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (1)

PSTPagoFacil Transactional API PHP
==================================

[](#pstpagofacil-transactional-api-php)

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

[](#installation)

Use composer package manager

```
composer require saulmoralespa/pstpagofacil
```

#### Bootstrapping autoloader and instantiating

[](#bootstrapping-autoloader-and-instantiating)

```
// ... please, add composer autoloader first
include_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

// import client class
use PSTPagoFacil\PSTPagoFacil;

// create token in panel  menu "API Tokens"
$token_user = 'YOUR_TOKEN_USER';

// instantiate the class
$pagoFacil = new PSTPagoFacil($token_user);
$pagoFacil->sandbox_mode(true); // sandbox true o production false
```

### Create pay transaction

[](#create-pay-transaction)

```
$transaction = array(
       'x_url_callback' => 'http://127.0.0.1/notify',
       'x_url_cancel' => 'http://127.0.0.1/cancel',
       'x_url_complete' => 'http://127.0.0.1/complete',
       'x_customer_email' => 'da545@gmail.com',
       'x_reference' => time(),
       'x_account_id' => '262', // Id service
       'x_amount' => 500,
       'x_currency' => 'CLP',
       'x_shop_country' => 'CL'
       );
//return object
$data = $pagoFacil->createPayTransaction($transaction);
```

### Get status order

[](#get-status-order)

```
$idOrder = '34524'; //id order
//return object
$statusOrder = $pagoFacil->statusOrder($idOrder);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2697d ago

### Community

Maintainers

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

---

Top Contributors

[![saulmoralespa](https://avatars.githubusercontent.com/u/19959663?v=4)](https://github.com/saulmoralespa "saulmoralespa (1 commits)")

---

Tags

pst pagofacilpagofacil phppstpagofacil-sdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saulmoralespa-pstpagofacil/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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