PHPackages                             alejobit/placetopay-pse-php - 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. alejobit/placetopay-pse-php

ActiveLibrary

alejobit/placetopay-pse-php
===========================

Use PlacetoPay PSE service in your PHP project

0.2.0(8y ago)02.5k1MITPHP

Since Dec 30Pushed 7y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (5)Used By (1)

PlacetoPay PSE SDK for PHP
==========================

[](#placetopay-pse-sdk-for-php)

[![Build Status](https://camo.githubusercontent.com/d43edf286534b744bc3b393b47598a47c5e2ea93a52fdfde6d4130d1d10a75f0/68747470733a2f2f7472617669732d63692e6f72672f616c656a6f6269742f706c616365746f7061792d7073652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alejobit/placetopay-pse-php) [![StyleCI](https://camo.githubusercontent.com/f1deb0565d0478d64b16cb3c017f511450f15fa8e98bfa68cf2923bcd76060d9/68747470733a2f2f7374796c6563692e696f2f7265706f732f37373833343432302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/77834420)

Use PlacetoPay PSE service in your PHP project

Requirements
------------

[](#requirements)

- [XML](http://php.net/manual/en/book.libxml.php) and [SOAP](http://php.net/manual/en/book.soap.php) extensions must be enabled

Installattion
-------------

[](#installattion)

Add `alejobit/placetopay-pse-php` as a require dependency in your `composer.json` file:

```
composer require alejobit/placetopay-pse-php
```

For the best operation of the client it is necessary to implement a caching library compatible with the standard [PSR-6](http://www.php-fig.org/psr/psr-6/).

If your project does not have a compatible implementation, you can proceed to install the following library:

```
composer require symfony/cache
```

Usage
-----

[](#usage)

Create a PSE client instance, note that the `$login` and `$tranKey` are given by PlacetoPay to be able to perform transactions on behalf of a collection site

```
use PlacetoPay\PSE\PSE;

$pse = new PSE($login, $tranKey);
```

Setting the [PSR-6](http://www.php-fig.org/psr/psr-6/) cache adapter instance (which must implement `Psr\Cache\CacheItemPoolInterface`)

```
$pse->setCacheAdapter(CacheItemPoolInterface $cacheAdapter);
```

Obtains the list of banks available for the trading establishment in the PSE system of ACH Colombia

This method returns a `PlacetoPay\PSE\Struct\ArrayOfBanks` object (which implements `\Iterator` and `\Countable` interfaces)

```
$bankList = $pse->getBankList();
```

Create transactions with the `createTransaction()` and `createTransactionMultiCredit()` methods:

```
$transaction = $pse->createTransaction();
$multiCreditTransaction = $pse->createTransactionMultiCredit();
```

Load the transaction information as follows:

```
$transaction->setBankCode($bank->getCode());
$transaction->setBankInterface(Bank::PERSONAL_INTERFACE);
$transaction->setReturnURL('https://www.placetopay.com');
$transaction->setReference(md5('reference'));
$transaction->setDescription('Description of transaction');
$transaction->setLanguage('ES');
$transaction->setCurrency('COP');
$transaction->setTotalAmount(12345.6);
$transaction->setTaxAmount(0.0);
$transaction->setDevolutionBase(0.0);
$transaction->setTipAmount(0.0);
$transaction->setPayer(array(
    'documentType' => 'CC',
    'document' => '123456789',
    'firstName' => 'Foo',
    'lastName' => 'Bar',
    'company' => 'PlacetoPay',
    'emailAddress' => 'info@placetopay.com',
    'address' => 'Calle 53 No. 45 – 112 OF. 1901',
    'city' => 'Medellín',
    'province' => 'Antioquia',
    'country' => 'CO',
    'phone' => '+57 (4) 444 2310',
    'mobile' => '+57 (4) 444 2310',
));
$transaction->setIpAddress('127.0.0.1');
$transaction->addAdditionalData('name', 'value');
```

MultiCredit transactions have an additional method to add credit concepts of the same as follows

```
$multiCreditTransaction->addCreditConcept(array(
    'entityCode'=> '123456',
    'serviceCode' => '654321',
    'amountValue' => 12345.6,
    'taxValue' => 0.0,
    'description' => 'Description of credit concept',
));
```

Once loaded all the necessary data is sent the transaction with the method `send()`

The `send()` method return a `PlacetoPay\PSE\Struct\PSETransactionResponse` with the result of the operation

```
$response = $transaction->send()
```

To obtain the information of a specific transaction can use the method `getTransactionInformation($id)` passing the unique identifier of the transaction to consult

```
$transactionInfo = $pse->getTransactionInformation($response->getTransactionId());
```

Related project
---------------

[](#related-project)

- [PlacetoPay PSE Pimple Service Provider](https://github.com/alejobit/placetopay-pse-pimple), this library is compatible with [Pimple](https://github.com/silexphp/Pimple) based projects, such as the [Silex micro-framework](https://github.com/silexphp/Silex)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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

Every ~114 days

Total

3

Last Release

3192d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12930197?v=4)[Manuel Mendoza](/maintainers/alejobit)[@alejobit](https://github.com/alejobit)

---

Top Contributors

[![alejobit](https://avatars.githubusercontent.com/u/12930197?v=4)](https://github.com/alejobit "alejobit (22 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alejobit-placetopay-pse-php/health.svg)

```
[![Health](https://phpackages.com/badges/alejobit-placetopay-pse-php/health.svg)](https://phpackages.com/packages/alejobit-placetopay-pse-php)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k348.9M2.5k](/packages/symfony-cache)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)

PHPackages © 2026

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