PHPackages                             indy2kro/buxfer-api - 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. indy2kro/buxfer-api

ActiveLibrary[API Development](/categories/api)

indy2kro/buxfer-api
===================

Buxfer API client library

1.1.1(3y ago)0271MITPHPPHP &gt;=7.3CI failing

Since Feb 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/indy2kro/buxfer-api)[ Packagist](https://packagist.org/packages/indy2kro/buxfer-api)[ RSS](/packages/indy2kro-buxfer-api/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (10)Versions (8)Used By (0)

BuxferApi
=========

[](#buxferapi)

Full Buxfer API library implementation in PHP.

Uses Guzzle HTTP client with cURL for HTTPS requests to Buxfer. Note: Using the API requires a valid Buxfer.com account.

See  for full API description.

Actions
=======

[](#actions)

Allowed API actions:

- login($username, $password) - login using Buxfer.com credentials, mandatory for all other API actions
- listAccounts() - returns an array with all accounts information
- listLoans() - returns an array with all loans
- listTags() - returns an array with all tags
- listBudgets() - returns an array with all budgets
- listReminders() - returns an array with all reminders
- listGroups() - returns an array with all groups
- listContacts() - returns an array with all groups
- uploadStatement($statement) - upload a statement
- listTransactions($filters) - returns an array with transactions based on the filters: accountId OR accountName, tagId OR tagName, startDate AND endDate OR month, budgetId OR budgetName, contactId OR contactName, groupId OR groupName
- addTransaction($transaction) - add a new transaction - see full API description of available parameters (add\_transaction)

Other useful methods:

- public function \_\_construct(Array $config = array(), HttpClient $httpClient = null) - constructor, can receive the configuration parameters (merged with current config), HttpClient object (extended from GuzzleHttpClient)
- getLastDuration() - get the duration of last request (float)
- getToken() - get the token received after login
- getConfig() - get configuration array
- setConfig($config) - set configuration array (merged with current config)

In case of error a new \\BuxferApi\\Exception is thrown.

Configuration
=============

[](#configuration)

Default configuration used - any parameter can be overwritten using constructor parameter or setConfig():

```
protected $_config = array(
    'user_agent' => 'PHP BuxferApi ' . self::VERSION,
    'timeout' => 10,
    'handler' => null,
);
```

Sample usage
============

[](#sample-usage)

```
$config = array(
    'buxfer_username' => 'testuser@testaccount.com',
    'buxfer_password' => 'testpassword',
    'buxfer_accountId' => '1000000',
);
$buxferApi = new \BuxferApi\Client($buxferConfig);
$buxferApi->login($config['buxfer_username'], $config['buxfer_password']);

// list existing transactions
$transactions = $buxferApi->listTransactions($config['buxfer_accountId']);

// add new transaction
$newTransaction = array(
    'accountId' => $config['buxfer_accountId'],
    'date'  => '2020-02-11 10:20:00',
    'type'  => 'expense',
    'amount' => '10.20',
    'description' => 'Test transaction',
    'tags' => 'mytag1,mytag2'
);
$buxferApi->addTransaction($transaction);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

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 ~138 days

Recently: every ~206 days

Total

7

Last Release

1441d ago

Major Versions

0.0.3 → 1.0.02020-02-23

PHP version history (3 changes)0.0.1PHP &gt;=5.6.0

1.0.0PHP ^7.2

1.1.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1812715?v=4)[Cristi Radu](/maintainers/indy2kro)[@indy2kro](https://github.com/indy2kro)

---

Top Contributors

[![indy2kro](https://avatars.githubusercontent.com/u/1812715?v=4)](https://github.com/indy2kro "indy2kro (24 commits)")

---

Tags

buxferphpbuxfer

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/indy2kro-buxfer-api/health.svg)

```
[![Health](https://phpackages.com/badges/indy2kro-buxfer-api/health.svg)](https://phpackages.com/packages/indy2kro-buxfer-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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