PHPackages                             jaakkom/procountor-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. [API Development](/categories/api)
4. /
5. jaakkom/procountor-php

ActiveLibrary[API Development](/categories/api)

jaakkom/procountor-php
======================

PHP Procountor client

219.4k3[1 PRs](https://github.com/Fisplay/procountor-php/pulls)PHPCI failing

Since Feb 24Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Fisplay/procountor-php)[ Packagist](https://packagist.org/packages/jaakkom/procountor-php)[ RSS](/packages/jaakkom-procountor-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

procountor-php
==============

[](#procountor-php)

- [Introduction](#introduction)
- [Start](#start)
- [API connection](#apiconnection)
- [Search invoices](#search)
- [Get an invoice](#getinvoice)
- [Posting a new invoice](#postinvoice)

Introduction
------------

[](#introduction)

This opensource project is about procountor API

Start
-----

[](#start)

```
use Procountor\Interfaces\LoggerInterface;

$yourLogger = new class() implements LoggerInterface {....}
$client = new Client($yourLogger);

$client->authenticateByApiKey(
    $clientId,
    $clientSecret,
    $redirectUri,
    $apiKey,
    $company
);

```

API connection
--------------

[](#api-connection)

This is how to connect to invoices's API endpoint:

```
$invoicesApi = new Invoices($client);

```

Search invoices
---------------

[](#search-invoices)

```
$invoices = $invoicesApi->get();

```

Get an invoice
--------------

[](#get-an-invoice)

To get an invoice with ID = 1212:

```
$invoicesApi->get(1212);

```

Posting a new invoice
=====================

[](#posting-a-new-invoice)

To post a new invoice, you need first to implement your own adapter:

```
$newInvoice = new class($yourdata) implements \Procountor\Interfaces\Write\Invoice {
    private $data;

    public function __construct($yourdata) {
        $this->data = $yourdata;
    }

    // then create the related getters:

    public function getPartnerId() {
        return $this->data->partnerid;
    }
    // ...etc
}

```

Finally you can properly post the invoice:

```
$invoice = $invoicesApi->post($newInvoice)

```

Developing
==========

[](#developing)

Documents about developing this project can be found under `/doc` directory

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 64.2% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/73d4870f2bfaf9cb32c0e26a7993779216a4f7112877107e51ecc4fd55282b27?d=identicon)[jmantila](/maintainers/jmantila)

---

Top Contributors

[![jaakkom](https://avatars.githubusercontent.com/u/1277004?v=4)](https://github.com/jaakkom "jaakkom (43 commits)")[![petteri-hakala](https://avatars.githubusercontent.com/u/58517212?v=4)](https://github.com/petteri-hakala "petteri-hakala (19 commits)")[![begueradj](https://avatars.githubusercontent.com/u/15982164?v=4)](https://github.com/begueradj "begueradj (3 commits)")[![jkjl](https://avatars.githubusercontent.com/u/6086923?v=4)](https://github.com/jkjl "jkjl (2 commits)")

### Embed Badge

![Health badge](/badges/jaakkom-procountor-php/health.svg)

```
[![Health](https://phpackages.com/badges/jaakkom-procountor-php/health.svg)](https://phpackages.com/packages/jaakkom-procountor-php)
```

###  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)
