2017 © Pedro Peláez
 

library figo

API wrapper for figo Connect.

image

figo/figo

API wrapper for figo Connect.

  • Thursday, June 14, 2018
  • by figo
  • Repository
  • 16 Watchers
  • 38 Stars
  • 41,925 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 1 Open issues
  • 20 Versions
  • 3 % Grown

The README.md

php-figo Build Status Packagist Version

PHP bindings for the figo Connect API: http://docs.figo.io/v3/, (*1)

Usage

First, you've to add this to your composer.json dependencies:, (*2)

"require": {
  "figo/figo": "1.*"
}

and run, (*3)

composer update

Now you can create a new session and access data:, (*4)

require_once "vendor/autoload.php";

use figo\Session;

$session = new Session("ASHWLIkouP2O6_bgA2wWReRhletgWKHYjLqDaqb0LFfamim9RjexTo22ujRIP_cjLiRiSyQXyt2kM1eXU2XLFZQ0Hro15HikJQT_eNeT_9XQ");

// Print out list of account numbers and balances.
$accounts = $session->get_accounts();
foreach ($accounts as $account) {
    print($account->account_number."\n");
    print($account->balance->balance."\n");
}

// Print out the list of all transaction originators/recipients of a specific account.
$account = $session->get_account("A1.1");
$transactions = $account->get_transactions();
foreach ($transactions as $transaction) {
    print($transaction->name."\n");
}

It is just as simple to allow users to login through the API:, (*5)

require_once "vendor/autoload.php";

use figo\Session;
use figo\Connection;
use Eloquent\Liftoff\Launcher;

$connection = new Connection("<client ID>", "<client secret>", "http://my-domain.org/redirect-url");

function start_login() {
    $launcher = new Launcher;
    $launcher->launch($connection->login_url("qweqwe"));
}

function process_redirect($authorization_code, $state) {
    // Handle the redirect URL invocation from the initial start_login call.

    // Ignore bogus redirects.
    if ($state !== "qweqwe") {
        return;
    }

    // Trade in authorization code for access token.
    $token_dict = $connection->obtain_access_token($authorization_code);

    // Start session.
    $session = new Session($token_dict["access_token"]);

    // Print out list of account numbers.
    $accounts = $session->get_accounts();
    foreach ($accounts as $account) {
        print($account->account_number."\n");
    }
}

Demos

In this repository you can also have a look at a simple console (console_demo.php) and web demo (web_demo folder). While the console demo simply accesses the figo API, the web demo implements the full OAuth flow., (*6)

The Versions

14/06 2018

dev-master

9999999-dev https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

14/06 2018

3.0.3

3.0.3.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/04 2018

dev-no-content-type-on-empty-body-post

dev-no-content-type-on-empty-body-post https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/02 2018

3.0.1

3.0.1.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/02 2018

3.0.0

3.0.0.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

08/02 2018

dev-feature/FAPI-1223--make-php-sdk-use-v3

dev-feature/FAPI-1223--make-php-sdk-use-v3 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/10 2017

1.3.0

1.3.0.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

11/07 2017

1.2.0

1.2.0.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/06 2017

1.1.10

1.1.10.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/06 2017

dev-fingerprint-update

dev-fingerprint-update https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

24/05 2017

1.1.9

1.1.9.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

11/04 2017

1.1.8

1.1.8.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/03 2017

1.1.7

1.1.7.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

 

The Development Requires

01/07 2016

1.1.6

1.1.6.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

28/12 2015

1.1.5

1.1.5.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

21/07 2014

1.1.3

1.1.3.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

17/07 2014

1.1.2

1.1.2.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

16/07 2014

1.1.1

1.1.1.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

14/07 2014

1.1.0

1.1.0.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

10/04 2014

1.0.2

1.0.2.0 https://github.com/figo-connect/php-figo

API wrapper for figo Connect.

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires