PHPackages                             darkghosthunter/flow-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. darkghosthunter/flow-sdk

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

darkghosthunter/flow-sdk
========================

Unofficial PHP SDK for Flow, a chilean payment gateway.

v1.1.1(7y ago)520311MITPHPPHP &gt;=7.1.3

Since Dec 11Pushed 4y agoCompare

[ Source](https://github.com/DarkGhostHunter/FlowSdk)[ Packagist](https://packagist.org/packages/darkghosthunter/flow-sdk)[ RSS](/packages/darkghosthunter-flow-sdk/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)DependenciesVersions (10)Used By (1)

[![Flow](https://camo.githubusercontent.com/a72eb6a405ac79c9d0e70ef57536966b8569bda9be7b7dfd6ac4264be89520db/68747470733a2f2f7777772e666c6f772e636c2f696d616765732f6865616465722f6c6f676f2d666c6f772e737667)](https://camo.githubusercontent.com/a72eb6a405ac79c9d0e70ef57536966b8569bda9be7b7dfd6ac4264be89520db/68747470733a2f2f7777772e666c6f772e636c2f696d616765732f6865616465722f6c6f676f2d666c6f772e737667)

[![Latest Stable Version](https://camo.githubusercontent.com/de8ae80e6428d0fe5676ed7254bd5d88cd413aca017746f2e29c9dbbef063237/68747470733a2f2f706f7365722e707567782e6f72672f6461726b67686f737468756e7465722f666c6f772d73646b2f762f737461626c65)](https://packagist.org/packages/darkghosthunter/flow-sdk) [![License](https://camo.githubusercontent.com/acba2e3a613aaf62bac485217013ba0fe284ec640e0fd59851c9aeadc3449bf2/68747470733a2f2f706f7365722e707567782e6f72672f6461726b67686f737468756e7465722f666c6f772d73646b2f6c6963656e7365)](https://packagist.org/packages/darkghosthunter/flow-sdk)[![](https://camo.githubusercontent.com/79a977fe4dafc8707786b9e7b60364c286faeafc578d284f4461dd1f67cfb58d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461726b67686f737468756e7465722f666c6f772d73646b2e737667)](https://camo.githubusercontent.com/79a977fe4dafc8707786b9e7b60364c286faeafc578d284f4461dd1f67cfb58d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6461726b67686f737468756e7465722f666c6f772d73646b2e737667)[![Build Status](https://camo.githubusercontent.com/508f156cdf2a4b1be46f4548edee4c019176e29680d564c9dce4ec4066b237f6/68747470733a2f2f7472617669732d63692e636f6d2f4461726b47686f737448756e7465722f466c6f7753646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/DarkGhostHunter/FlowSdk) [![Coverage Status](https://camo.githubusercontent.com/e0f7d99fd51c16e53af4b1bf1831f0c4189c1196c1843947d3e606a852f88833/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4461726b47686f737448756e7465722f466c6f7753646b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/DarkGhostHunter/FlowSdk?branch=master) [![Maintainability](https://camo.githubusercontent.com/e4b3625c9d98312f99428b8526a8db2464a1ec13172b8eb0a247a1d4e9c31069/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30313338653036383631383031323065363863352f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/DarkGhostHunter/FlowSdk/maintainability) [![Test Coverage](https://camo.githubusercontent.com/14c8fe5ba2599a5e9ef7f5663f072e902c97c7d45a404c271f870943ca68b944/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30313338653036383631383031323065363863352f746573745f636f766572616765)](https://codeclimate.com/github/DarkGhostHunter/FlowSdk/test_coverage)

Flow SDK
========

[](#flow-sdk)

The simplest (and unofficial) SDK for Flow you will find.

[Flow](https://www.flow.cl) is a chilean payment gateway that acts as a middleman for Webpay Plus, Onepay, Servipag, Multicaja and CryptoCompra.

With Flow, you don't have to register in each service and comply with each of their SDK, APIs or contracts. Flow will be in charge of the money collection and delivering to your commerce, whatever payment method the customer uses (and you want to enable), through a single common interface.

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

[](#requirements)

- A [Flow account](https://www.flow.cl/app/web/register.php)
- PHP 7.1.3+
- ext-json
- ext-openssl
- ext-curl

> If you need PHP 5.6 compatibility, you can check the [`legacy` branch](#php-56-compatibility).

> If you're using Laravel, [check out Laraflow](https://github.com/DarkGhostHunter/Laraflow), which connects your application gracefully with this package.

Install
-------

[](#install)

Install it in your project using [Composer](https://getcomposer.org).

```
composer require darkghosthunter/flow-sdk
```

### Manual installation

[](#manual-installation)

If you don't have Composer, you need to [download `composer.phar`](https://getcomposer.org/composer.phar), and PHP manually if it's not available globally in your systems.

Once you're done, download this package into your server (or your own computer) and put the `composer.phar` file inside. Then, let Composer download the required packages:

```
cd /path/to/flow-sdk

path/to/php composer.phar install --optimize-autoloader --apcu-autoloader --no-dev
```

Then load the package anywhere in your code calling the Composer autoloader:

```
