PHPackages                             imbue/wefact-api-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. imbue/wefact-api-php

ActiveLibrary[API Development](/categories/api)

imbue/wefact-api-php
====================

WeFact API client library for PHP.

1.1.0(4y ago)42.3k↓50%2MITPHPPHP ^7.2 || ^7.3 || ^8.0

Since Jul 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/imbue/wefact-api-php)[ Packagist](https://packagist.org/packages/imbue/wefact-api-php)[ Docs](https://github.com/imbue/wefact-api-php)[ RSS](/packages/imbue-wefact-api-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

PHP Library for WeFact
======================

[](#php-library-for-wefact)

[![](https://github.com/imbue/wefact-api-php/workflows/tests/badge.svg)](https://github.com/imbue/wefact-api-php/workflows/tests/badge.svg)

PHP library for online invoicing software [wefact.nl](https://wefact.nl)

Getting started
---------------

[](#getting-started)

Initializing the WeFact client

```
$client = new WeFact();
$client->setApiToken($yourApiToken);
```

Retrieve multiple invoices

```
$invoices = $client->invoices->list();
```

Get a single invoice

```
$invoice = $client->invoices->show([
    'InvoiceCode' => 'F0001',
]);
```

Creating an invoice

```
$invoice = $client->invoices->create([
    'DebtorCode' => 'DB10000',
    'InvoiceLines' => [
        [
            'Number' => 2,
            'ProductCode' => 'P0001'
        ],
        [
            'Description' => 'Reiskosten à € 0,19 per km',
            'PriceExcl' => 0.19
        ]
    ]
 ]);
```

Updating an invoice

```
$invoice = $client->invoices->edit([
    'Identifier' => 1,
    'Discount' => 10,
    'Term' => 30,
 ]);
```

Deleting an invoice

```
$invoice = $client->invoices->delete([
    'Identifier' => 1,
 ]);
```

Downloading an attachment

```
$invoices = $client->attachments->download([
    'ReferenceIdentifier' => '1',
    'Type' => 'pricequote',
    'Filename' => 'sample.pdf',
]);
```

### Available controllers

[](#available-controllers)

- Attachment
- Credit invoice
- Credit invoice lines
- Debtor
- Group
- Invoice
- Invoice line
- Price quote
- Price quote line
- Product
- Settings
- Subscription

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

2

Last Release

1693d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.1.0PHP ^7.2 || ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f480f2c5de60247fd3ab77b5bea07d14782779dbbe21eb58a41d53519ab101ad?d=identicon)[imbue](/maintainers/imbue)

---

Top Contributors

[![imbue](https://avatars.githubusercontent.com/u/28404530?v=4)](https://github.com/imbue "imbue (19 commits)")

---

Tags

api-clientinvoicinginvoicing-softwarephpwefactwefact-apiphpapisdkinvoicingwefact

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/imbue-wefact-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/imbue-wefact-api-php/health.svg)](https://phpackages.com/packages/imbue-wefact-api-php)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23914.2M16](/packages/hubspot-api-client)[php-opencloud/openstack

PHP SDK for OpenStack APIs. Supports BlockStorage, Compute, Identity, Images, Networking and Metric Gnocchi

2292.2M24](/packages/php-opencloud-openstack)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

574.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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